We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c49371 commit 805b85cCopy full SHA for 805b85c
1 file changed
lua/lazy/core/meta.lua
@@ -305,7 +305,11 @@ function M:fix_disabled()
305
for _, plugin in pairs(self.plugins) do
306
if plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled()) then
307
changes = changes + 1
308
- self:disable(plugin)
+ if plugin.optional then
309
+ self:del(plugin.name)
310
+ else
311
+ self:disable(plugin)
312
+ end
313
end
314
315
self:rebuild()
0 commit comments