mirror of https://github.com/folke/lazy.nvim.git
fix(health): always use main spec
This commit is contained in:
parent
39b66027a5
commit
6ff480bdee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue