From 42f5aa76e21ec34b3d7fc79218e5069610d7db2e Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 22 Dec 2022 17:24:58 +0100 Subject: [PATCH] fix: pass plugins instead of plugin names to command. Fixes #103 --- lua/lazy/view/commands.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lazy/view/commands.lua b/lua/lazy/view/commands.lua index 0005848..e6f1945 100644 --- a/lua/lazy/view/commands.lua +++ b/lua/lazy/view/commands.lua @@ -83,7 +83,9 @@ function M.setup() local opts = { wait = cmd.bang == true } local prefix, args = M.parse(cmd.args) if #args > 0 then - opts.plugins = args + opts.plugins = vim.tbl_map(function(plugin) + return Config.plugins[plugin] + end, args) end M.cmd(prefix, opts) end, {