feat(highlighting): TS plugin deprecated, replace with Arborist
Arborist is now used to manage the treesitter parsers, as nvim-treesitter was archived earlier this month
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
return {
|
||||||
|
-- Treesitter parser support
|
||||||
|
"arborist-ts/arborist.nvim",
|
||||||
|
config = function()
|
||||||
|
require("arborist").setup({
|
||||||
|
update_cadence = "weekly",
|
||||||
|
prefer_wasm = false,
|
||||||
|
install_popular = false,
|
||||||
|
ensure_installed = {
|
||||||
|
"asm",
|
||||||
|
"bash",
|
||||||
|
"c",
|
||||||
|
"cpp",
|
||||||
|
"css",
|
||||||
|
"gotmpl",
|
||||||
|
"haskell",
|
||||||
|
"helm",
|
||||||
|
"html",
|
||||||
|
"hyprlang",
|
||||||
|
"java",
|
||||||
|
"javadoc",
|
||||||
|
"javascript",
|
||||||
|
"jsdoc",
|
||||||
|
"json",
|
||||||
|
"lua",
|
||||||
|
"markdown",
|
||||||
|
"python",
|
||||||
|
"scss",
|
||||||
|
"toml",
|
||||||
|
"typescript",
|
||||||
|
"tsx",
|
||||||
|
"xml",
|
||||||
|
"yaml",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
return {
|
|
||||||
-- syntax highlighting
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
branch = "master",
|
|
||||||
event = { "BufRead", "BufNewFile" },
|
|
||||||
build = ":TSUpdate",
|
|
||||||
config = function()
|
|
||||||
require("nvim-treesitter.configs").setup({
|
|
||||||
ensure_installed = {
|
|
||||||
"asm",
|
|
||||||
"bash",
|
|
||||||
"c",
|
|
||||||
"cpp",
|
|
||||||
"css",
|
|
||||||
"gotmpl",
|
|
||||||
"haskell",
|
|
||||||
"helm",
|
|
||||||
"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,
|
|
||||||
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
disable = { "tex" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user