diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index 1b02342..c82654b 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -162,6 +162,8 @@ function M.load(plugins, reason) if type(plugin) == "string" then if Config.plugins[plugin] then plugin = Config.plugins[plugin] + elseif Config.spec.disabled[plugin] then + plugin = nil else Util.error("Plugin " .. plugin .. " not found") plugin = nil