local M = {} function M.fn(node) if not node or node.name == ".." then return require'nvim-tree.actions.change-dir'.fn('..') else local newdir = vim.fn.fnamemodify(TreeExplorer.cwd, ':h') require'nvim-tree.actions.change-dir'.fn(newdir) return require"nvim-tree.actions.find-file".fn(node.absolute_path) end end return M