dotfiles/.config/nvim/lua/plugins/treesitter.lua

35 lines
718 B
Lua

local status, treesitter = pcall(require, "nvim-treesitter.configs")
if not status then
return
end
treesitter.setup({
ensure_installed = {
"bash",
"c",
"css",
"dockerfile",
"go",
"html",
"javascript",
"json",
"latex",
"lua",
"make",
"python",
"rust",
"vue",
"yaml",
},
sync_install = false,
auto_install = true, -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
highlight = {
enable = true,
disable = {
"gitcommit",
"git_rebase",
}, -- non-treesitter highligthing is way better for verbose gitcommit and git_rebase
},
indent = { enable = true },
autotag = { enabled = true },
})