mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-02 06:06: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 changes = 0
|
||||||
local function check(top)
|
local function check(top)
|
||||||
for _, plugin in pairs(self.plugins) do
|
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
|
if plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled()) then
|
||||||
changes = changes + 1
|
changes = changes + 1
|
||||||
if plugin.optional then
|
if plugin.optional then
|
||||||
|
|
|
@ -25,6 +25,7 @@ local function clean(plugins)
|
||||||
if plugin._.dep == false then
|
if plugin._.dep == false then
|
||||||
plugin._.dep = nil
|
plugin._.dep = nil
|
||||||
end
|
end
|
||||||
|
plugin._.top = nil
|
||||||
return plugin
|
return plugin
|
||||||
end, plugins)
|
end, plugins)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue