Skip to content

Commit

Permalink
fix(loader): dont show error of missing plugins if they are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 4, 2023
1 parent 81cb352 commit 09fd8fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09fd8fa

Please sign in to comment.