11local utils = require " nvim-tree.utils"
22local builders = require " nvim-tree.explorer.node-builders"
3- local common = require " nvim-tree.explorer.common "
3+ local explorer_node = require " nvim-tree.explorer.node "
44local filters = require " nvim-tree.explorer.filters"
55local sorters = require " nvim-tree.explorer.sorters"
66local live_filter = require " nvim-tree.live-filter"
@@ -15,7 +15,7 @@ local M = {}
1515local function update_status (nodes_by_path , node_ignored , status )
1616 return function (node )
1717 if nodes_by_path [node .absolute_path ] then
18- common .update_git_status (node , node_ignored , status )
18+ explorer_node .update_git_status (node , node_ignored , status )
1919 end
2020 return node
2121 end
2929
3030local function update_parent_statuses (node , project , root )
3131 while project and node and node .absolute_path ~= root do
32- common .update_git_status (node , false , project )
32+ explorer_node .update_git_status (node , false , project )
3333 node = node .parent
3434 end
3535end
@@ -53,7 +53,7 @@ function M.reload(node, git_status, unloaded_bufnr)
5353
5454 local child_names = {}
5555
56- local node_ignored = common .is_git_ignored (node )
56+ local node_ignored = explorer_node .is_git_ignored (node )
5757 local nodes_by_path = utils .key_by (node .nodes , " absolute_path" )
5858 while true do
5959 local ok , name , t = pcall (vim .loop .fs_scandir_next , handle )
@@ -82,7 +82,7 @@ function M.reload(node, git_status, unloaded_bufnr)
8282
8383 if n .type ~= t then
8484 utils .array_remove (node .nodes , n )
85- common .node_destroy (n )
85+ explorer_node .node_destroy (n )
8686 nodes_by_path [abs ] = nil
8787 end
8888 end
@@ -119,14 +119,14 @@ function M.reload(node, git_status, unloaded_bufnr)
119119 if child_names [n .absolute_path ] then
120120 return child_names [n .absolute_path ]
121121 else
122- common .node_destroy (n )
122+ explorer_node .node_destroy (n )
123123 return nil
124124 end
125125 end , node .nodes )
126126 )
127127
128128 local is_root = not node .parent
129- local child_folder_only = common .has_one_child_folder (node ) and node .nodes [1 ]
129+ local child_folder_only = explorer_node .has_one_child_folder (node ) and node .nodes [1 ]
130130 if M .config .group_empty and not is_root and child_folder_only then
131131 node .group_next = child_folder_only
132132 local ns = M .reload (child_folder_only , git_status )
0 commit comments