mirror of https://github.com/folke/lazy.nvim.git
fix: pass plugins instead of plugin names to command. Fixes #103
This commit is contained in:
parent
4bf771a6b2
commit
42f5aa76e2
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue