From b89e6bffd258e4dd367992c306b588e9b24b9a76 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 18 Dec 2022 17:36:32 +0100 Subject: [PATCH] perf: lazy-load the commands available on the `lazy` module --- lua/lazy/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lazy/init.lua b/lua/lazy/init.lua index 57c48fd..3d9ae2e 100644 --- a/lua/lazy/init.lua +++ b/lua/lazy/init.lua @@ -94,7 +94,9 @@ end setmetatable(M, { __index = function(_, key) - return require("lazy.view.commands").commands[key] + return function(...) + return require("lazy.view.commands").commands[key](...) + end end, })