-
-
Notifications
You must be signed in to change notification settings - Fork 233
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!).
-
indents(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.
-
ranged_tag(table)
-
indent(number)
0 -
modifiers(list)
-
(string)
"under-headings"
-
-
-
strong_paragraph_delimiter(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_delimiternode isn't actually a child of the previous heading in the syntax tree some extra work is required to make it indent as expected.-
indent(function)
function(buf, _, line)
-
-
core.autocommands- Handles the creation and management of Neovim's autocommands. -
core.integrations.treesitter- A module designed to integrate Treesitter into Neorg.
core.autocommandscore.clipboardcore.clipboard.code-blockscore.completioncore.concealercore.defaultscore.dirmancore.dirman.utilscore.esupports.hopcore.esupports.indentcore.esupports.metagencore.exportcore.export.htmlcore.export.markdowncore.fscore.highlightscore.integrations.coq_nvimcore.integrations.nvim-cmpcore.integrations.nvim-compecore.integrations.treesittercore.iterocore.journalcore.keybindscore.latex.renderercore.looking-glasscore.neorgcmdcore.neorgcmd.commands.returncore.pivotcore.presentercore.promocore.qol.toccore.qol.todo_itemscore.queries.nativecore.scannercore.storagecore.summarycore.syntaxcore.tanglecore.tempuscore.text-objectscore.todo-introspectorcore.uicore.ui.calendar