fix: pass plugins instead of plugin names to command. Fixes #103

This commit is contained in:
Folke Lemaitre 2022-12-22 17:24:58 +01:00
parent 4bf771a6b2
commit 42f5aa76e2
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -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, {