File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ function M.spec()
188
188
-- spec is a module
189
189
local function _load (name )
190
190
local modname = name and (Config .spec .. " ." .. name ) or Config .spec
191
+ package.loaded [modname ] = nil
191
192
Util .try (function ()
192
193
spec :normalize (require (modname ))
193
194
end , " Failed to load **" .. modname .. " **" )
@@ -212,7 +213,14 @@ function M.load()
212
213
spec .plugins [" lazy.nvim" ] = nil
213
214
spec :add ({ " folke/lazy.nvim" , lazy = true })
214
215
216
+ local existing = Config .plugins
215
217
Config .plugins = spec .plugins
218
+ -- copy state. This wont do anything during startup
219
+ for name , plugin in pairs (existing ) do
220
+ if Config .plugins [name ] then
221
+ Config .plugins [name ]._ = plugin ._
222
+ end
223
+ end
216
224
Util .track ()
217
225
218
226
Util .track (" state" )
You can’t perform that action at this time.
0 commit comments