@@ -2,7 +2,6 @@ local utils = require("nvim-tree.utils")
2
2
local view = require (" nvim-tree.view" )
3
3
local core = require (" nvim-tree.core" )
4
4
local lib = require (" nvim-tree.lib" )
5
- local explorer_node = require (" nvim-tree.explorer.node" )
6
5
local diagnostics = require (" nvim-tree.diagnostics" )
7
6
8
7
local M = {}
@@ -16,7 +15,7 @@ local MAX_DEPTH = 100
16
15
--- @return boolean
17
16
local function status_is_valid (node , what , skip_gitignored )
18
17
if what == " git" then
19
- local git_status = explorer_node . get_git_status (node )
18
+ local git_status = node : get_git_status ()
20
19
return git_status ~= nil and (not skip_gitignored or git_status [1 ] ~= " !!" )
21
20
elseif what == " diag" then
22
21
local diag_status = diagnostics .get_diag_status (node )
@@ -75,7 +74,7 @@ local function expand_node(node)
75
74
if not node .open then
76
75
-- Expand the node.
77
76
-- Should never collapse since we checked open.
78
- lib . expand_or_collapse (node )
77
+ node : expand_or_collapse ()
79
78
end
80
79
end
81
80
@@ -98,7 +97,7 @@ local function move_next_recursive(what, skip_gitignored)
98
97
valid = status_is_valid (node_init , what , skip_gitignored )
99
98
end
100
99
if node_init .nodes ~= nil and valid and not node_init .open then
101
- lib . expand_or_collapse (node_init )
100
+ node_init : expand_or_collapse ()
102
101
end
103
102
104
103
move (" next" , what , skip_gitignored )
0 commit comments