28 lines
1.2 KiB
Lua
28 lines
1.2 KiB
Lua
require'nvim-treesitter.configs'.setup {
|
|
ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
|
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
|
|
ignore_install = {"phpdoc", "tree-sitter-phpdoc"}, -- List of parsers to ignore installing
|
|
autopairs = {
|
|
enable = true,
|
|
},
|
|
highlight = {
|
|
enable = true, -- false will disable the whole extension
|
|
disable = {"phpdoc", "tree-sitter-phpdoc"}, -- list of language that will be disabled
|
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
-- Instead of true it can also be a list of languages
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
rainbow = {
|
|
enable = true,
|
|
extended_mode = true,
|
|
},
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
context_commentstring = {
|
|
enable = true,
|
|
enable_autocmd = true,
|
|
},
|
|
}
|