Skip to content

Commit

Permalink
fix(reload): strings in lua reload (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed May 12, 2024
1 parent 76d3210 commit 2fcbcaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/view/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fcbcaf

Please sign in to comment.