fix(reload): strings in lua reload (#1439)

This commit is contained in:
Tristan Knight 2024-05-12 08:50:06 +01:00 committed by GitHub
parent 76d321008f
commit 2fcbcaf07a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ M.commands = {
end,
reload = function(opts)
for _, plugin in pairs(opts.plugins) do
if type(plugin) == "string" then
plugin = Config.plugins[plugin]
end
Util.warn("Reloading **" .. plugin.name .. "**")
require("lazy.core.loader").reload(plugin)
end