24 lines
644 B
Lua
24 lines
644 B
Lua
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
configs.setup({
|
|
ensure_installed = { "bash", "c", "cpp", "javascript", "json", "lua", "python", "typescript", "tsx", "css", "rust", "java", "yaml", "markdown", "markdown_inline" }, -- one of "all" or a list of languages
|
|
ignore_install = { "phpdoc" }, -- List of parsers to ignore installing
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting=false,
|
|
},
|
|
ident = { enable = true },
|
|
rainbow = {
|
|
enable = true,
|
|
extended_mode = true,
|
|
max_file_lines = nil,
|
|
},
|
|
autopairs = {
|
|
enable = true,
|
|
}
|
|
})
|
|
|