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.highlight.enable

Whether to enable tree-sitter based syntax highlighting.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.treesitter.highlight.enableVimSyntax

Whether to enable Vim’s legacy regex syntax highlighting in addition to native tree-sitter highlighting. Set this to true for all languages, or provide a list of languages or filetypes for which it should be enabled.

Type: boolean or list of string

Default:

false

Example:

[
  "latex"
  "html"
]

Declared by:

plugins.treesitter.highlight.disable

Languages or filetypes for which tree-sitter based syntax highlighting should not be started 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 highlighting.

This option only applies to Nixvim’s native tree-sitter highlighting 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:

[
  "latex"
  "html"
]

Declared by: