Skip to content

Commit 7969794

Browse files
committed
fix(#1716): focus file/directory when created in a sub-directory
1 parent 0111052 commit 7969794

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/nvim-tree/actions/fs/create-file.lua

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ function M.fn(node)
106106
if not is_error then
107107
notify.info(new_file_path .. " was properly created")
108108
end
109+
110+
-- implicitly refreshes contents
109111
require("nvim-tree.actions.finders.find-file").fn(new_file_path)
110112
end)
111113
end

0 commit comments

Comments
 (0)