mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-07 16:04:35 +02:00
perf(root): cache root detection. Fixes #1753
This commit is contained in:
parent
db175ef3f6
commit
98db7ec0d2
2 changed files with 26 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue