mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 13:26:45 +00:00
fix(plugin): rebuild plugins after fixing optional and cond to ensure enabled will work correctly
This commit is contained in:
parent
28a80136b5
commit
638c8e6382
1 changed files with 5 additions and 0 deletions
|
@ -292,7 +292,12 @@ function Spec:fix_disabled()
|
||||||
end
|
end
|
||||||
|
|
||||||
self:fix_optional()
|
self:fix_optional()
|
||||||
|
-- rebuild any plugin specs that were modified
|
||||||
|
for name, _ in pairs(self.dirty) do
|
||||||
|
self:rebuild(name)
|
||||||
|
end
|
||||||
self:fix_cond()
|
self:fix_cond()
|
||||||
|
self.dirty = {}
|
||||||
|
|
||||||
for _, plugin in pairs(self.plugins) do
|
for _, plugin in pairs(self.plugins) do
|
||||||
local disabled = plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled())
|
local disabled = plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue