mirror of https://github.com/folke/lazy.nvim.git
perf: lazy-load the commands available on the `lazy` module
This commit is contained in:
parent
48309ddf09
commit
b89e6bffd2
|
@ -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…
Reference in New Issue