add git integration

This commit is contained in:
kiyan42
2020-02-18 18:22:05 +01:00
parent 0ed31e065e
commit f8fb6de9c6
6 changed files with 92 additions and 22 deletions

View File

@@ -66,16 +66,14 @@ local function open()
end
local function close()
local BUF_NAME = get_buf_name()
local win = get_win(BUF_NAME)
local win = get_win()
if not win then return end
api.nvim_win_close(win, true)
end
local function update_view(update_cursor)
local BUF_NAME = get_buf_name()
local buf = get_buf(BUF_NAME);
local buf = get_buf();
if not buf then return end
local cursor = api.nvim_win_get_cursor(0)