[TS] Go back to older version
This commit is contained in:
@@ -1,53 +1,56 @@
|
|||||||
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({
|
||||||
"asm",
|
ensure_installed = {
|
||||||
"bash",
|
"asm",
|
||||||
"c",
|
"bash",
|
||||||
"cpp",
|
"c",
|
||||||
"css",
|
"cpp",
|
||||||
"html",
|
"css",
|
||||||
"hyprlang",
|
"html",
|
||||||
"java",
|
"hyprlang",
|
||||||
"javadoc",
|
"java",
|
||||||
"javascript",
|
"javadoc",
|
||||||
"jsdoc",
|
"javascript",
|
||||||
"json",
|
"jsdoc",
|
||||||
"latex",
|
"json",
|
||||||
"lua",
|
"jsonc",
|
||||||
"markdown",
|
-- "latex",
|
||||||
"meson",
|
"lua",
|
||||||
"nginx",
|
"markdown",
|
||||||
"php",
|
"meson",
|
||||||
"python",
|
"nginx",
|
||||||
"rasi",
|
"php",
|
||||||
"requirements",
|
"python",
|
||||||
"robots_txt",
|
"rasi",
|
||||||
"ruby",
|
"requirements",
|
||||||
"rust",
|
"robots",
|
||||||
"scss",
|
"ruby",
|
||||||
"sql",
|
"rust",
|
||||||
"svelte",
|
"scss",
|
||||||
"swift",
|
"sql",
|
||||||
"toml",
|
"svelte",
|
||||||
"typescript",
|
"swift",
|
||||||
"tsx",
|
"toml",
|
||||||
"systemverilog",
|
"typescript",
|
||||||
"vue",
|
"tsx",
|
||||||
"xml",
|
"verilog",
|
||||||
"yaml",
|
"vue",
|
||||||
"zathurarc",
|
"xml",
|
||||||
})
|
"yaml",
|
||||||
|
"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