linuxware/modules/neovim/lua/plugins/treesitter.lua
Alexandre Cavalheiro S. Tiago da Silva b0dd61fa9d
fix(neovim): remove razor from ensure_installed in treesitter
The language's treesitter spec is not in the family yet, have to
manually download, compile and add it.
2025-03-21 16:51:51 -03:00

58 lines
1.1 KiB
Lua

-- Customize Treesitter
---@type LazySpec
return {
"nvim-treesitter/nvim-treesitter",
---@param _ LazyPlugin
---@param opts TSConfig
opts = function(_, opts)
-- disable automatically installing parsers
opts.auto_install = false
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed --[[@as string[]], {
-- Programming
"c",
"c_sharp",
"cmake",
"cpp",
"css",
"gdscript",
"godot_resource",
"html",
"hyprlang",
"javascript",
"jsdoc",
"lua",
"nim",
"nim_format_string",
"objc",
"proto",
"python",
"svelte",
"tsx",
"typescript",
"vue",
-- Scripting
"bash",
"fish",
"glsl",
-- Configuring
"dockerfile",
"json",
"jsonc",
"nix",
"vhs",
"yaml",
-- Misc
"cuda",
"markdown",
"markdown_inline",
"query",
-- VIM
"vim",
"vimdoc",
})
end,
}