From 09fd8fabd29eb6da82c3eb2be4b270f9de9b4d8c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 4 Jan 2023 11:02:29 +0100 Subject: [PATCH] fix(loader): dont show error of missing plugins if they are disabled --- lua/lazy/core/loader.lua | 2 ++ 1 file changed, 2 insertions(+) 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