perf(root): cache root detection. Fixes #1753

This commit is contained in:
Folke Lemaitre
2023-10-16 12:42:54 +02:00
parent db175ef3f6
commit 98db7ec0d2
2 changed files with 26 additions and 9 deletions

View File

@ -180,10 +180,7 @@ function M.setup(opts)
Util.format.setup()
Util.news.setup()
vim.api.nvim_create_user_command("LazyRoot", function()
Util.root.info()
end, { desc = "LazyVim roots for the current buffer" })
Util.root.setup()
vim.api.nvim_create_user_command("LazyExtras", function()
Util.extras.show()