Commit aa35325
authored
fix(esupports.indent): keep indentation of verbatim blocks without an injected TS parser (#1685)
* fix(esupports.indent): keep indentation of verbatim blocks without an injected TS parser
* fix(promo): fix off-by-one error when re-indenting lines during range operation
`indent.reindent_range()` expects 0-based, exclusive line ranges, but the lines returned by
`nvim_buf_get_mark()` for the `<`/`>` marks are 1-based, inclusive line ranges
* fix(esupports.indent): fix setting indentation of line to -1 not being ignored
indent-expression might return -1 as the indentation of a line to indicate that
neovim should handle the indentation of the line. When manually setting the
indentation of a line with `buffer_set_line_indent` using the indentation
returned by indent-expression however, the -1 indentation caused the indentation
to be set to 0 instead of kept as is1 parent 35da593 commit aa35325
File tree
2 files changed
+28
-12
lines changed- lua/neorg/modules/core
- esupports/indent
- promo
2 files changed
+28
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
147 | | - | |
| 152 | + | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| |||
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
257 | 268 | | |
258 | 269 | | |
259 | 270 | | |
| |||
309 | 320 | | |
310 | 321 | | |
311 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
312 | 328 | | |
313 | 329 | | |
314 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
0 commit comments