Skip to content

Commit

Permalink
fix: pass plugins instead of plugin names to command. Fixes #103
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 22, 2022
1 parent 4bf771a commit 42f5aa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lazy/view/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 42f5aa7

Please sign in to comment.