[TS] Update to new version

This commit is contained in:
2026-01-14 13:31:59 +01:00
parent 43704dc33c
commit 6c37a3b8c7
2 changed files with 45 additions and 47 deletions

View File

@@ -22,13 +22,13 @@ return {
},
})
-- list of servers for mason to install
mason_lspconfig.setup({
-- list of servers for mason to install
ensure_installed = {
"asm_lsp",
"bashls",
"clangd",
"cmake",
"cmakelang",
"cssls",
"docker_language_server",
"gopls",

View File

@@ -4,52 +4,50 @@ return {
event = { "BufRead", "BufNewFile" },
build = ":TSUpdate",
config = function()
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,
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",
})
highlight = {
enable = true,
disable = { "tex" },
},
vim.api.nvim_create_autocmd({ 'FileType' }, {
pattern = { '*' },
callback = function()
pcall( vim.treesitter.start )
end
})
end,
}