From 2fcbcaf07ab79594f2ba25ebf6f4c47e250c33be Mon Sep 17 00:00:00 2001 From: Tristan Knight Date: Sun, 12 May 2024 08:50:06 +0100 Subject: [PATCH] fix(reload): strings in lua reload (#1439) --- lua/lazy/view/commands.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazy/view/commands.lua b/lua/lazy/view/commands.lua index a826827..1210917 100644 --- a/lua/lazy/view/commands.lua +++ b/lua/lazy/view/commands.lua @@ -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