43 lines
1.1 KiB
Lua
43 lines
1.1 KiB
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
build = ":TSUpdate",
|
|
event = {
|
|
"BufReadPost",
|
|
"BufNewFile"
|
|
},
|
|
cmd = {
|
|
"TSInstall",
|
|
"TSBufEnable",
|
|
"TSBufDisable",
|
|
"TSModuleInfo",
|
|
"TSInstallSync"
|
|
},
|
|
config = function(_, opts)
|
|
require("nvim-treesitter.configs").setup({
|
|
ensure_installed = {
|
|
"cpp",
|
|
"c",
|
|
"lua",
|
|
"vim",
|
|
"vimdoc",
|
|
"query"
|
|
},
|
|
sync_install = false,
|
|
auto_install = true,
|
|
|
|
highlight = {
|
|
enable = true,
|
|
-- additional_vim_regex_highlighting = false,
|
|
-- disable = {
|
|
-- "latex"
|
|
-- },
|
|
additional_vim_regex_highlighting = {
|
|
"latex"
|
|
}
|
|
}
|
|
})
|
|
end
|
|
}
|
|
}
|