[TS] Go back to older version
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
return {
|
||||
-- syntax highlighting
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = "master",
|
||||
event = { "BufRead", "BufNewFile" },
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter").install({
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
"asm",
|
||||
"bash",
|
||||
"c",
|
||||
@@ -17,7 +19,8 @@ return {
|
||||
"javascript",
|
||||
"jsdoc",
|
||||
"json",
|
||||
"latex",
|
||||
"jsonc",
|
||||
-- "latex",
|
||||
"lua",
|
||||
"markdown",
|
||||
"meson",
|
||||
@@ -26,7 +29,7 @@ return {
|
||||
"python",
|
||||
"rasi",
|
||||
"requirements",
|
||||
"robots_txt",
|
||||
"robots",
|
||||
"ruby",
|
||||
"rust",
|
||||
"scss",
|
||||
@@ -36,18 +39,18 @@ return {
|
||||
"toml",
|
||||
"typescript",
|
||||
"tsx",
|
||||
"systemverilog",
|
||||
"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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user