mirror of https://github.com/folke/lazy.nvim.git
fix(loader): dont show error of missing plugins if they are disabled
This commit is contained in:
parent
81cb352fe6
commit
09fd8fabd2
|
@ -162,6 +162,8 @@ function M.load(plugins, reason)
|
||||||
if type(plugin) == "string" then
|
if type(plugin) == "string" then
|
||||||
if Config.plugins[plugin] then
|
if Config.plugins[plugin] then
|
||||||
plugin = Config.plugins[plugin]
|
plugin = Config.plugins[plugin]
|
||||||
|
elseif Config.spec.disabled[plugin] then
|
||||||
|
plugin = nil
|
||||||
else
|
else
|
||||||
Util.error("Plugin " .. plugin .. " not found")
|
Util.error("Plugin " .. plugin .. " not found")
|
||||||
plugin = nil
|
plugin = nil
|
||||||
|
|
Loading…
Reference in New Issue