refacto: move set_index_and_redraw -> actions.find-file.fn

This commit is contained in:
kiyan
2022-02-06 16:32:44 +01:00
parent 23c95a674f
commit 7829d7c7cf
5 changed files with 76 additions and 58 deletions

View File

@@ -6,7 +6,7 @@ function M.fn(node)
else
local newdir = vim.fn.fnamemodify(require'nvim-tree.lib'.Tree.cwd, ':h')
require'nvim-tree.actions.change-dir'.fn(newdir)
return require'nvim-tree.lib'.set_index_and_redraw(node.absolute_path)
return require"nvim-tree.actions.find-file".fn(node.absolute_path)
end
end