refacto: move set_index_and_redraw -> actions.find-file.fn
This commit is contained in:
@@ -2,10 +2,13 @@ local git = require "nvim-tree.git"
|
||||
local diagnostics = require "nvim-tree.diagnostics"
|
||||
local view = require "nvim-tree.view"
|
||||
local explorer_module = require'nvim-tree.explorer'
|
||||
local get_explorer = function() return require "nvim-tree.lib".Tree end
|
||||
|
||||
local M = {}
|
||||
|
||||
local function get_explorer()
|
||||
return require "nvim-tree.lib".Tree
|
||||
end
|
||||
|
||||
local function refresh_nodes(node, projects)
|
||||
local project_root = git.get_project_root(node.absolute_path or node.cwd)
|
||||
explorer_module.refresh(node.nodes, node.absolute_path or node.cwd, node, projects[project_root] or {})
|
||||
|
||||
Reference in New Issue
Block a user