Skip to content

Commit 09fd8fa

Browse files
committed
fix(loader): dont show error of missing plugins if they are disabled
1 parent 81cb352 commit 09fd8fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/lazy/core/loader.lua

+2
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ function M.load(plugins, reason)
162162
if type(plugin) == "string" then
163163
if Config.plugins[plugin] then
164164
plugin = Config.plugins[plugin]
165+
elseif Config.spec.disabled[plugin] then
166+
plugin = nil
165167
else
166168
Util.error("Plugin " .. plugin .. " not found")
167169
plugin = nil

0 commit comments

Comments
 (0)