[TS] Go back to older version

This commit is contained in:
2026-01-17 10:51:32 +01:00
parent ef5ce82f37
commit bce8f11ed3

View File

@@ -1,53 +1,56 @@
return {
-- syntax highlighting
"nvim-treesitter/nvim-treesitter",
branch = "master",
event = { "BufRead", "BufNewFile" },
build = ":TSUpdate",
config = function()
require("nvim-treesitter").install({
"asm",
"bash",
"c",
"cpp",
"css",
"html",
"hyprlang",
"java",
"javadoc",
"javascript",
"jsdoc",
"json",
"latex",
"lua",
"markdown",
"meson",
"nginx",
"php",
"python",
"rasi",
"requirements",
"robots_txt",
"ruby",
"rust",
"scss",
"sql",
"svelte",
"swift",
"toml",
"typescript",
"tsx",
"systemverilog",
"vue",
"xml",
"yaml",
"zathurarc",
})
require("nvim-treesitter.configs").setup({
ensure_installed = {
"asm",
"bash",
"c",
"cpp",
"css",
"html",
"hyprlang",
"java",
"javadoc",
"javascript",
"jsdoc",
"json",
"jsonc",
-- "latex",
"lua",
"markdown",
"meson",
"nginx",
"php",
"python",
"rasi",
"requirements",
"robots",
"ruby",
"rust",
"scss",
"sql",
"svelte",
"swift",
"toml",
"typescript",
"tsx",
"verilog",
"vue",
"xml",
"yaml",
"zathurarc",
},
sync_install = false,
vim.api.nvim_create_autocmd({ 'FileType' }, {
pattern = { '.*@<!tex.*' },
callback = function()
pcall( vim.treesitter.start )
end
highlight = {
enable = true,
disable = { "tex" },
},
})
end,
}