@@ -2,7 +2,6 @@ local utils = require("nvim-tree.utils")
22local view = require (" nvim-tree.view" )
33local core = require (" nvim-tree.core" )
44local lib = require (" nvim-tree.lib" )
5- local explorer_node = require (" nvim-tree.explorer.node" )
65local diagnostics = require (" nvim-tree.diagnostics" )
76
87local M = {}
@@ -16,7 +15,7 @@ local MAX_DEPTH = 100
1615--- @return boolean
1716local function status_is_valid (node , what , skip_gitignored )
1817 if what == " git" then
19- local git_status = explorer_node . get_git_status (node )
18+ local git_status = node : get_git_status ()
2019 return git_status ~= nil and (not skip_gitignored or git_status [1 ] ~= " !!" )
2120 elseif what == " diag" then
2221 local diag_status = diagnostics .get_diag_status (node )
@@ -75,7 +74,7 @@ local function expand_node(node)
7574 if not node .open then
7675 -- Expand the node.
7776 -- Should never collapse since we checked open.
78- lib . expand_or_collapse (node )
77+ node : expand_or_collapse ()
7978 end
8079end
8180
@@ -98,7 +97,7 @@ local function move_next_recursive(what, skip_gitignored)
9897 valid = status_is_valid (node_init , what , skip_gitignored )
9998 end
10099 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 ()
102101 end
103102
104103 move (" next" , what , skip_gitignored )
0 commit comments