-
-
Notifications
You must be signed in to change notification settings - Fork 216
Indent
core.esupports.indent
uses Norg's format to unambiguously determine
the indentation level for the current line.
The indent calculation is aided by treesitter, which means that the quality of indents is "limited" by the quality of the produced syntax tree, which will get better and better with time.
To reindent a file, you may use the inbuilt Neovim =
operator.
Indent levels are also calculated as you type, but may not be entirely correct
due to incomplete syntax trees (if you find any such examples, then file an issue!).
-
(boolean)
When false will not dedent nodes, only indent them. This means that if a node is indented too much to the right, it will not be touched. It will only be indented if the node is to the left of the expected indentation level.
Useful when writing documentation in the style of vimdoc, where content is indented heavily to the right in comparison to the default Neorg style.
true
-
(table)
The table of indentations.
This table describes a set of node types and how they should be indented when encountered in the syntax tree.
It also allows for certain nodes to be given properties (modifiers), which can additively stack indentation given more complex circumstances.
-
(table)
Indent behaviour for strong paragraph delimiters.
The indentation of these should be determined based on the heading level that it is a part of. Since the
strong_paragraph_delimiter
node isn't actually a child of the previous heading in the syntax tree some extra work is required to make it indent as expected.
-
(table)
Apart from indents, modifiers may also be defined.
These are repeatable instructions for nodes that share common traits.
-
core.autocommands
- Handles the creation and management of Neovim's autocommands. -
core.integrations.treesitter
- A module designed to integrate Treesitter into Neorg.
-
core.promo
- Promotes or demotes nestable items within Neorg files.
core.autocommands
core.clipboard
core.clipboard.code-blocks
core.completion
core.concealer
core.defaults
core.dirman
core.dirman.utils
core.esupports.hop
core.esupports.indent
core.esupports.metagen
core.export
core.export.markdown
core.fs
core.highlights
core.integrations.coq_nvim
core.integrations.nvim-cmp
core.integrations.nvim-compe
core.integrations.treesitter
core.itero
core.journal
core.keybinds
core.latex.renderer
core.looking-glass
core.neorgcmd
core.neorgcmd.commands.return
core.pivot
core.presenter
core.promo
core.qol.toc
core.qol.todo_items
core.queries.native
core.scanner
core.storage
core.summary
core.syntax
core.tangle
core.tempus
core.text-objects
core.todo-introspector
core.ui
core.ui.calendar