We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5830585 commit e2e6b2bCopy full SHA for e2e6b2b
lua/nvim-tree.lua
@@ -786,13 +786,16 @@ local function localise_default_opts()
786
end
787
788
function M.purge_all_state()
789
- require("nvim-tree.watcher").purge_watchers()
790
view.close_all_tabs()
791
view.abandon_all_windows()
792
- if core.get_explorer() ~= nil then
+ local explorer = core.get_explorer()
+ if explorer then
793
require("nvim-tree.git").purge_state()
794
+ explorer:destroy()
795
core.reset_explorer()
796
797
+ -- purge orphaned that were not destroyed by their nodes
798
+ require("nvim-tree.watcher").purge_watchers()
799
800
801
---@param conf table|nil
0 commit comments