Files
nvim/lua/plugins/treesitter.lua
2026-03-10 22:20:18 +01:00

25 lines
695 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
version = false,
build = ":TSUpdate",
main = "nvim-treesitter.configs",
opts = {
ensure_installed = {
"bash", "bibtex", "c", "css", "fish", "go",
"java", "rust", "lua", "vim", "python", "cpp",
"markdown", "markdown-inline","html", "yaml", "latex" },
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
},
highlight = { enable = true, },
-- Integrate autotag with Treesitter
autotag = { enable = true, },
config = function(_, opts)
local ok, configs = pcall(require, "nvim-treesitter.configs")
if ok then configs.setup(opts) end
end,
}