mirror of https://github.com/folke/lazy.nvim.git
fix(plugin): clear Plugin._.super when rebuilding
This commit is contained in:
parent
01d16b67c2
commit
f5ed470de6
|
@ -179,8 +179,10 @@ function Spec:rebuild(name)
|
||||||
local fragments = {} ---@type LazyPlugin[]
|
local fragments = {} ---@type LazyPlugin[]
|
||||||
|
|
||||||
repeat
|
repeat
|
||||||
|
local super = plugin._.super
|
||||||
if self.fragments[plugin._.fid] then
|
if self.fragments[plugin._.fid] then
|
||||||
plugin._.dep = plugin._.fpid ~= nil
|
plugin._.dep = plugin._.fpid ~= nil
|
||||||
|
plugin._.super = nil
|
||||||
if plugin._.fdeps then
|
if plugin._.fdeps then
|
||||||
plugin.dependencies = {}
|
plugin.dependencies = {}
|
||||||
for _, cid in ipairs(plugin._.fdeps) do
|
for _, cid in ipairs(plugin._.fdeps) do
|
||||||
|
@ -192,7 +194,7 @@ function Spec:rebuild(name)
|
||||||
setmetatable(plugin, nil)
|
setmetatable(plugin, nil)
|
||||||
table.insert(fragments, 1, plugin)
|
table.insert(fragments, 1, plugin)
|
||||||
end
|
end
|
||||||
plugin = plugin._.super
|
plugin = super
|
||||||
until not plugin
|
until not plugin
|
||||||
|
|
||||||
if #fragments == 0 then
|
if #fragments == 0 then
|
||||||
|
|
Loading…
Reference in New Issue