26 lines
651 B
Lua
Executable File
26 lines
651 B
Lua
Executable File
require('nvim-treesitter.configs').setup {
|
|
-- A list of parser names, or "all"
|
|
ensure_installed = {
|
|
"lua", "vim", "vimdoc", "query",
|
|
"javascript", "typescript", "tsx",
|
|
"python", "rust", "go", "c", "cpp",
|
|
"pascal", "latex", "yaml",
|
|
-- add more as needed
|
|
},
|
|
|
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
|
sync_install = false,
|
|
|
|
-- Automatically install missing parsers when entering buffer
|
|
auto_install = true,
|
|
|
|
highlight = {
|
|
enable = true, -- false will disable the whole extension
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
}
|