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

30 lines
567 B
Lua
Raw Normal View History

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 },
indent = { enable = true },
autotag = { enabled = true },
})