[TS] Go back to older version
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user