fix(health): always use main spec

This commit is contained in:
Folke Lemaitre 2023-01-01 21:09:02 +01:00
parent 39b66027a5
commit 6ff480bdee
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
local Util = require("lazy.util") local Util = require("lazy.util")
local Config = require("lazy.core.config") local Config = require("lazy.core.config")
local Plugin = require("lazy.core.plugin")
local M = {} local M = {}
@ -49,7 +48,7 @@ function M.check()
"cond", "cond",
"_", "_",
} }
local spec = Plugin.spec({ show_errors = false }) local spec = Config.parsed
for _, plugin in pairs(spec.plugins) do for _, plugin in pairs(spec.plugins) do
for key in pairs(plugin) do for key in pairs(plugin) do
if not vim.tbl_contains(valid, key) then if not vim.tbl_contains(valid, key) then