chore: remove TreeExplorer global variable (#2561)
This commit is contained in:
@@ -6,7 +6,7 @@ local log = require "nvim-tree.log"
|
||||
|
||||
local M = {}
|
||||
|
||||
TreeExplorer = nil
|
||||
local TreeExplorer = nil
|
||||
local first_init_done = false
|
||||
|
||||
function M.init(foldername)
|
||||
@@ -27,6 +27,10 @@ function M.get_explorer()
|
||||
return TreeExplorer
|
||||
end
|
||||
|
||||
function M.reset_explorer()
|
||||
TreeExplorer = nil
|
||||
end
|
||||
|
||||
function M.get_cwd()
|
||||
return TreeExplorer and TreeExplorer.absolute_path
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user