File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ local builders = require "nvim-tree.explorer.node-builders"
2
2
local git = require " nvim-tree.git"
3
3
local log = require " nvim-tree.log"
4
4
local notify = require " nvim-tree.notify"
5
- local renderer = {} -- circular dependency, will become a member
6
5
local utils = require " nvim-tree.utils"
7
6
local view = require " nvim-tree.view"
8
7
local watch = require " nvim-tree.explorer.watch"
@@ -459,7 +458,7 @@ function Explorer:reload_explorer()
459
458
local projects = git .reload ()
460
459
self :refresh_nodes (projects )
461
460
if view .is_visible () then
462
- renderer . draw ()
461
+ self . renderer : draw ()
463
462
end
464
463
event_running = false
465
464
end
@@ -472,7 +471,7 @@ function Explorer:reload_git()
472
471
473
472
local projects = git .reload ()
474
473
explorer_node .reload_node_status (self , projects )
475
- renderer . draw ()
474
+ self . renderer : draw ()
476
475
event_running = false
477
476
end
478
477
@@ -481,8 +480,6 @@ function Explorer.setup(opts)
481
480
require (" nvim-tree.explorer.node" ).setup (opts )
482
481
require (" nvim-tree.explorer.watch" ).setup (opts )
483
482
484
- renderer = require " nvim-tree.renderer"
485
-
486
483
Marks = require " nvim-tree.marks"
487
484
Clipboard = require " nvim-tree.actions.fs.clipboard"
488
485
end
You can’t perform that action at this time.
0 commit comments