treesitter
layer
#
The treesitter
layer is a dependency layer providing languages layers with
Tree-sitter support.
Configuration #
highlight
(defaulttrue
): whether to enable syntax highlighting;indent
(defaulttrue
): whether to enable automatic indentation.
Examples #
-- path/of/your/vim/config/init.lua
require("visimp")({
treesitter = {
highlight = false,
indent = false
}
})
Layer-specific API #
langs(languages)
#
This method ensures the Tree-sitter parsers passed as a list of strings
(languages
) are installed.