perf: lazy-load the commands available on the `lazy` module

This commit is contained in:
Folke Lemaitre 2022-12-18 17:36:32 +01:00
parent 48309ddf09
commit b89e6bffd2
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -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,
}) })