mirror of https://github.com/folke/lazy.nvim.git
fix(loader): when reloading, clear plugin properties cache (#1153)
See #445
This commit is contained in:
parent
e42fccc3cd
commit
312e424a08
|
@ -216,6 +216,9 @@ function M.deactivate(plugin)
|
||||||
-- disable handlers
|
-- disable handlers
|
||||||
Handler.disable(plugin)
|
Handler.disable(plugin)
|
||||||
|
|
||||||
|
-- clear plugin properties cache
|
||||||
|
plugin._.cache = nil
|
||||||
|
|
||||||
-- remove loaded lua modules
|
-- remove loaded lua modules
|
||||||
Util.walkmods(plugin.dir .. "/lua", function(modname)
|
Util.walkmods(plugin.dir .. "/lua", function(modname)
|
||||||
package.loaded[modname] = nil
|
package.loaded[modname] = nil
|
||||||
|
|
Loading…
Reference in New Issue