Skip to content

Commit 1895ea8

Browse files
committed
fix(treesitter): use modern init config
1 parent 2d2dc0f commit 1895ea8

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

lua/plugins/core/treesitter.lua

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
local my_utils = require("my.utils")
2-
31
---@module "lazy"
42
---@type LazySpec
53
return {
64
{
75
"nvim-treesitter/nvim-treesitter",
86
lazy = false,
9-
main = "nvim-treesitter.configs",
7+
build = ":TSUpdate",
108
---@type my.types.TSConfig
119
opts = {
1210
ensure_installed = {},
1311
indent = { enable = true },
1412
highlight = { enable = true, use_languagetree = true },
1513
},
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,
2214
},
2315
}

0 commit comments

Comments
 (0)