fix(treesitter): TS update during inital build

This commit is contained in:
Folke Lemaitre 2025-09-17 16:54:34 +02:00
parent 2c44d33063
commit 2d56d3b37c
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -13,7 +13,7 @@ return {
LazyVim.error("Please restart Neovim and run `:TSUpdate` to use the `nvim-treesitter` **main** branch.")
return
end
vim.cmd.TSUpdate()
TS.update(nil, { summary = true })
end,
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
event = { "LazyFile", "VeryLazy" },