We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4d704e commit 3d58a9bCopy full SHA for 3d58a9b
lua/nvim-tree/actions/fs/create-file.lua
@@ -110,7 +110,10 @@ function M.fn(node)
110
require("nvim-tree.actions.reloaders.reloaders").reload_explorer()
111
else
112
-- synchronous call required so that we may focus the file now
113
- watch.refresh_path(node.absolute_path)
+ node = node.nodes ~= nil and node or node.parent
114
+ if node then
115
+ watch.refresh_path(node.absolute_path)
116
+ end
117
end
118
utils.focus_file(utils.path_remove_trailing(new_file_path))
119
end)
0 commit comments