mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-03-31 21:26:34 +00:00
test: fix tests
This commit is contained in:
parent
f81a3fb7fe
commit
e5e9bf4821
2 changed files with 2 additions and 1 deletions
|
@ -306,7 +306,7 @@ function M:fix_disabled()
|
|||
local changes = 0
|
||||
local function check(top)
|
||||
for _, plugin in pairs(self.plugins) do
|
||||
if plugin._.top == top then
|
||||
if (plugin._.top or false) == top then
|
||||
if plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled()) then
|
||||
changes = changes + 1
|
||||
if plugin.optional then
|
||||
|
|
|
@ -25,6 +25,7 @@ local function clean(plugins)
|
|||
if plugin._.dep == false then
|
||||
plugin._.dep = nil
|
||||
end
|
||||
plugin._.top = nil
|
||||
return plugin
|
||||
end, plugins)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue