mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 12:56:46 +00:00
perf: lazy-load the commands available on the lazy
module
This commit is contained in:
parent
48309ddf09
commit
b89e6bffd2
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ end
|
||||||
|
|
||||||
setmetatable(M, {
|
setmetatable(M, {
|
||||||
__index = function(_, key)
|
__index = function(_, key)
|
||||||
return require("lazy.view.commands").commands[key]
|
return function(...)
|
||||||
|
return require("lazy.view.commands").commands[key](...)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue