treesitter

This commit is contained in:
2026-03-10 20:52:03 +01:00
parent fa7c381d2e
commit fae5cc0b1e
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
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 },
},
config = function(_, opts)
local ok, configs = pcall(require, "nvim-treesitter.configs")
if ok then configs.setup(opts) end
end,
}