fix(treesitter): reload lazyvim.tresitter.util to prevent issues with stale modules when upgrading

This commit is contained in:
Folke Lemaitre
2025-10-18 06:38:43 +02:00
parent 048056e952
commit 62ce8a23d8

View File

@@ -13,6 +13,8 @@ return {
LazyVim.error("Please restart Neovim and run `:TSUpdate` to use the `nvim-treesitter` **main** branch.")
return
end
-- make sure we're using the latest treesitter util
package.loaded["lazyvim.util.treesitter"] = nil
LazyVim.treesitter.build(function()
TS.update(nil, { summary = true })
end)