feat/chore: rewrite git with job and some other fixes (#743)

* feat/chore: rewrite git with job and some other fixes

* fix: fs clear window, rename echo_warning -> warn

also fix renaming and add an event blocker to avoid running many events
at the same time
This commit is contained in:
Kiyan
2021-11-27 16:02:54 +01:00
committed by GitHub
parent b853e1083c
commit 6662b60a2b
15 changed files with 453 additions and 354 deletions

View File

@@ -304,7 +304,9 @@ local function is_buf_valid(bufnr)
end
function M.open(options)
local should_redraw = false
if not is_buf_valid(M.View.bufnr) then
should_redraw = true
create_buffer()
end
@@ -322,6 +324,7 @@ function M.open(options)
if not opts.focus_tree then
vim.cmd("wincmd p")
end
return should_redraw
end
local function get_existing_buffers()