dotfiles/.config/nvim/lua/plugins/treesitter.lua
2024-02-28 01:37:11 +01:00

40 lines
984 B
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"
}
}
})
end
}
}