mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue