From 193be7387fc923894f3da10bb9c5989935415d37 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 31 Jul 2023 15:19:25 +0800 Subject: [PATCH] perf(git): update GitGutter status --- bundle/git.vim/lua/git/command/add.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundle/git.vim/lua/git/command/add.lua b/bundle/git.vim/lua/git/command/add.lua index c146c755a..a5d0c6854 100644 --- a/bundle/git.vim/lua/git/command/add.lua +++ b/bundle/git.vim/lua/git/command/add.lua @@ -21,6 +21,9 @@ local function on_exit(id, code, single) log.debug('git-add exit code:' .. code .. ' single:' .. single) if code == 0 and single == 0 then + if vim.fn.exists(':GitGutter') == 2 then + vim.cmd('GitGutter') + end nt.notify('stage files done!') else nt.notify('stage files failed!')