Skip to content

Commit

Permalink
fix(config): compat with lazy.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 17, 2023
1 parent b984c0c commit 501474e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/lazyvim/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ function M.load(name)
end, {
msg = "Failed loading " .. mod,
on_error = function(msg)
local modpath = require("lazy.core.cache").find(mod)
if modpath then
Util.error(msg)
local info = require("lazy.core.cache").find(mod)
if info == nil or (type(info) == "table" and #info == 0) then
return
end
Util.error(msg)
end,
})
end
Expand Down

0 comments on commit 501474e

Please sign in to comment.