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