Files
dotfiles/term/.config/nvim/lua/plugins/treesitter.lua
T
2026-04-07 20:29:06 +02:00

33 lines
632 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",
"tsx",
"vue",
"html",
"css",
"bash",
"markdown",
"markdown_inline",
},
highlight = { enable = true },
indent = { enable = true },
folding = { enable = true },
})
end
end,
}