[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,10 +1,12 @@
return { return {
-- syntax highlighting -- syntax highlighting
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
branch = "master",
event = { "BufRead", "BufNewFile" }, event = { "BufRead", "BufNewFile" },
build = ":TSUpdate", build = ":TSUpdate",
config = function() config = function()
require("nvim-treesitter").install({ require("nvim-treesitter.configs").setup({
ensure_installed = {
"asm", "asm",
"bash", "bash",
"c", "c",
@@ -17,7 +19,8 @@ return {
"javascript", "javascript",
"jsdoc", "jsdoc",
"json", "json",
"latex", "jsonc",
-- "latex",
"lua", "lua",
"markdown", "markdown",
"meson", "meson",
@@ -26,7 +29,7 @@ return {
"python", "python",
"rasi", "rasi",
"requirements", "requirements",
"robots_txt", "robots",
"ruby", "ruby",
"rust", "rust",
"scss", "scss",
@@ -36,18 +39,18 @@ return {
"toml", "toml",
"typescript", "typescript",
"tsx", "tsx",
"systemverilog", "verilog",
"vue", "vue",
"xml", "xml",
"yaml", "yaml",
"zathurarc", "zathurarc",
}) },
sync_install = false,
vim.api.nvim_create_autocmd({ 'FileType' }, { highlight = {
pattern = { '.*@<!tex.*' }, enable = true,
callback = function() disable = { "tex" },
pcall( vim.treesitter.start ) },
end
}) })
end, end,
} }