We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52b0c32 commit 6a51945Copy full SHA for 6a51945
lua/nvim-tree/actions/fs/create-file.lua
@@ -107,11 +107,10 @@ function M.fn(node)
107
events._dispatch_folder_created(new_file_path)
108
if M.enable_reload then
109
require("nvim-tree.actions.reloaders.reloaders").reload_explorer()
110
+ else
111
+ require("nvim-tree.explorer.reload").reload(node, {})
112
end
- -- INFO: defer needed when reload is automatic (watchers)
- vim.defer_fn(function()
113
- utils.focus_file(utils.path_remove_trailing(new_file_path))
114
- end, 150)
+ utils.focus_file(utils.path_remove_trailing(new_file_path))
115
end)
116
117
0 commit comments