We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d2dc0f commit 1895ea8Copy full SHA for 1895ea8
1 file changed
lua/plugins/core/treesitter.lua
@@ -1,23 +1,15 @@
1
-local my_utils = require("my.utils")
2
-
3
---@module "lazy"
4
---@type LazySpec
5
return {
6
{
7
"nvim-treesitter/nvim-treesitter",
8
lazy = false,
9
- main = "nvim-treesitter.configs",
+ build = ":TSUpdate",
10
---@type my.types.TSConfig
11
opts = {
12
ensure_installed = {},
13
indent = { enable = true },
14
highlight = { enable = true, use_languagetree = true },
15
},
16
- ---@param opts TSConfig|?
17
- config = function(_, opts)
18
- opts = opts or {}
19
- opts.ensure_installed = my_utils.dedupe(opts.ensure_installed --[[@as table<string>]] or {})
20
- require("nvim-treesitter.configs").setup(opts)
21
- end,
22
23
}
0 commit comments