Header indenting #602
-
|
Whenever I'm typing out headers, before hitting enter the indenting is fine. For example but on entering a new line, the header goes back to root Not really sure how to fix this, thought treesitter might have been doing something but my treesitter config is pretty simple and my neorg is also pretty simple Edit: The text after headers are still indented properly so it looks like this ( looks better in nvim ) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Indentation in neorg is literal, not a visual thing like in markdown (where rendering determines indentation) Each heading level gets 1 space indent over the previous. The proper indentation should be Note the literal spaces pointed out with The indentexpr built in covers most cases, and you shouldn't ever need to add white space. Indentation level also isn't meant to be increased without a new header, though there is |
Beta Was this translation helpful? Give feedback.
Indentation in neorg is literal, not a visual thing like in markdown (where rendering determines indentation)
Each heading level gets 1 space indent over the previous. The proper indentation should be
Note the literal spaces pointed out with
^The indentexpr built in covers most cases, and you shouldn't ever need to add white space. Indentation level also isn't meant to be increased without a new header, though there is
---and===for returning to previous indentation and root indentation respectively