nvim: Fix treesitter config

This commit is contained in:
Andreas Tsouchlos 2025-11-15 23:51:23 +01:00
parent 924ba5c280
commit ffb7d66888

View File

@ -1,23 +1,29 @@
return { return {
"nvim-treesitter/nvim-treesitter", {
branch = 'main', "nvim-treesitter/nvim-treesitter",
lazy = false, -- This plugin does not support lazy loading build = ":TSUpdate",
build = ":TSUpdate", branxh = "main",
opts = { lazy = false, -- This plugin doesn't support lazy loading
ensure_installed = { config = function(_, opts)
"cpp", require("nvim-treesitter.configs").setup({
"c", ensure_installed = {
"python", "cpp",
"rust", "c",
"lua", "lua",
"markdown", "vim",
"vimdoc", "vimdoc",
}, "query"
auto_install = true, },
highlight = { sync_install = false,
enable = true, auto_install = true,
-- TODO: Is this required? highlight = {
additional_vim_regex_highlighting = { "latex" } -- Required for vimtex -- disable = { "latex" },
} enable = true,
additional_vim_regex_highlighting = {
"latex"
}
}
})
end
} }
} }