refacto: make git module interface to wait for job to finish

allows simplify the explore/reload/find/initialization by making the
whole code synchronous. No more callback needed.
This commit is contained in:
kiyan
2022-02-21 19:12:16 +01:00
parent a9fe57c0d8
commit f977e5c05a
7 changed files with 62 additions and 94 deletions

View File

@@ -102,9 +102,8 @@ function M.fn(node)
a.nvim_out_write(file..' was properly created\n')
end
events._dispatch_folder_created(file)
require'nvim-tree.actions.reloaders'.reload_explorer(function()
focus_file(file)
end)
require'nvim-tree.actions.reloaders'.reload_explorer()
focus_file(file)
end
return M