Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

plugins.treesitter.indent.enable

Whether to enable tree-sitter based indentation.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.treesitter.indent.disable

Languages or filetypes for which tree-sitter based indentation should not be enabled by Nixvim. A raw Lua function may be used for buffer-specific control; it receives the tree-sitter language, buffer number, and filetype, in that order, and should return true to disable indentation.

This option only applies to Nixvim’s native tree-sitter indentation setup for the modern nvim-treesitter main branch. Legacy nvim-treesitter configuration should continue using upstream settings under plugins.treesitter.settings.

Type: (list of string) or raw lua code

Default:

[ ]

Example:

[
  "python"
  "yaml"
]

Declared by: