fix(loader): dont show error of missing plugins if they are disabled

This commit is contained in:
Folke Lemaitre 2023-01-04 11:02:29 +01:00
parent 81cb352fe6
commit 09fd8fabd2
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 0 deletions

View File

@ -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