mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-04 15:07:34 +00:00
fix(loader): when reloading, clear plugin properties cache (#1153)
See #445
This commit is contained in:
parent
e42fccc3cd
commit
312e424a08
1 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,9 @@ function M.deactivate(plugin)
|
|||
-- disable handlers
|
||||
Handler.disable(plugin)
|
||||
|
||||
-- clear plugin properties cache
|
||||
plugin._.cache = nil
|
||||
|
||||
-- remove loaded lua modules
|
||||
Util.walkmods(plugin.dir .. "/lua", function(modname)
|
||||
package.loaded[modname] = nil
|
||||
|
|
Loading…
Add table
Reference in a new issue