mirror of https://github.com/folke/lazy.nvim.git
fix(reload): strings in lua reload (#1439)
This commit is contained in:
parent
76d321008f
commit
2fcbcaf07a
|
@ -56,6 +56,9 @@ M.commands = {
|
||||||
end,
|
end,
|
||||||
reload = function(opts)
|
reload = function(opts)
|
||||||
for _, plugin in pairs(opts.plugins) do
|
for _, plugin in pairs(opts.plugins) do
|
||||||
|
if type(plugin) == "string" then
|
||||||
|
plugin = Config.plugins[plugin]
|
||||||
|
end
|
||||||
Util.warn("Reloading **" .. plugin.name .. "**")
|
Util.warn("Reloading **" .. plugin.name .. "**")
|
||||||
require("lazy.core.loader").reload(plugin)
|
require("lazy.core.loader").reload(plugin)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue