mirror of https://github.com/folke/lazy.nvim.git
fix(health): show error if setup didn't run
* Fix back bootstrapping and healthcheck for fresh install with no packages to fetch. * Revert changes to bootstrapping, make checkhealth produce more meaningful message.
This commit is contained in:
parent
903f0fe542
commit
0c7b41872e
|
@ -53,6 +53,9 @@ function M.check()
|
|||
end
|
||||
|
||||
local spec = Config.spec
|
||||
if spec == nil then
|
||||
error("No plugins loaded. Did you forget to run `require(\"lazy\").setup()`?")
|
||||
else
|
||||
for _, plugin in pairs(spec.plugins) do
|
||||
M.check_valid(plugin)
|
||||
M.check_override(plugin)
|
||||
|
@ -70,6 +73,7 @@ function M.check()
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
---@param plugin LazyPlugin
|
||||
|
|
Loading…
Reference in New Issue