File tree 3 files changed +8
-12
lines changed
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
1
local events = require " nvim-tree.events"
2
- local explorer = require " nvim-tree.explorer"
3
2
local view = require " nvim-tree.view"
4
3
local log = require " nvim-tree.log"
5
4
@@ -16,7 +15,7 @@ function M.init(foldername)
16
15
if TreeExplorer then
17
16
TreeExplorer :destroy ()
18
17
end
19
- TreeExplorer = explorer :new (foldername )
18
+ TreeExplorer = require ( " nvim-tree. explorer" ) :new (foldername )
20
19
if not first_init_done then
21
20
events ._dispatch_ready ()
22
21
first_init_done = true
Original file line number Diff line number Diff line change @@ -13,14 +13,11 @@ local NodeIterator = require "nvim-tree.iterators.node-iterator"
13
13
local Watcher = require " nvim-tree.watcher"
14
14
15
15
local Filters = require " nvim-tree.explorer.filters"
16
- --- @type Marks
17
- local Marks -- circular dependencies
16
+ local Marks = require " nvim-tree.marks"
18
17
local LiveFilter = require " nvim-tree.explorer.live-filter"
19
18
local Sorters = require " nvim-tree.explorer.sorters"
20
- --- @type Clipboard
21
- local Clipboard -- circular dependencies
22
- --- @type Renderer
23
- local Renderer -- circular dependencies
19
+ local Clipboard = require " nvim-tree.actions.fs.clipboard"
20
+ local Renderer = require " nvim-tree.renderer"
24
21
25
22
local FILTER_REASON = require (" nvim-tree.enum" ).FILTER_REASON
26
23
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ local log = require "nvim-tree.log"
2
2
local view = require " nvim-tree.view"
3
3
local events = require " nvim-tree.events"
4
4
5
- local _padding = require " nvim-tree.renderer.components.padding"
6
5
local icon_component = require " nvim-tree.renderer.components.icons"
7
- local full_name = require " nvim-tree.renderer.components.full-name "
6
+
8
7
local Builder = require " nvim-tree.renderer.builder"
9
8
10
9
local SIGN_GROUP = " NvimTreeRendererSigns"
@@ -122,9 +121,10 @@ function Renderer:draw()
122
121
end
123
122
124
123
function Renderer .setup (opts )
125
- _padding .setup (opts )
126
- full_name .setup (opts )
127
124
icon_component .setup (opts )
125
+
126
+ require " nvim-tree.renderer.components.padding" .setup (opts )
127
+ require " nvim-tree.renderer.components.full-name" .setup (opts )
128
128
end
129
129
130
130
return Renderer
You can’t perform that action at this time.
0 commit comments