1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

perf(git): update GitGutter status

This commit is contained in:
wsdjeg 2023-07-31 15:19:25 +08:00 committed by Eric Wong
parent 41325a6a93
commit 193be7387f

View File

@ -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!')