Files
dotfiles/term/.config/nvim/lua/plugins/treesitter.lua
T
2026-04-03 07:41:31 +02:00

19 lines
494 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
branch = "master",
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
config = function()
local ok, configs = pcall(require, "nvim-treesitter.configs")
if ok then
configs.setup({
auto_install = true,
ensure_installed = { "python", "lua", "json", "yaml", "javascript", "typescript" },
highlight = { enable = true },
indent = { enable = true },
folding = { enable = true },
})
end
end,
}