mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
perf(git): update GitGutter status
This commit is contained in:
parent
41325a6a93
commit
193be7387f
3
bundle/git.vim/lua/git/command/add.lua
vendored
3
bundle/git.vim/lua/git/command/add.lua
vendored
@ -21,6 +21,9 @@ local function on_exit(id, code, single)
|
|||||||
log.debug('git-add exit code:' .. code .. ' single:' .. single)
|
log.debug('git-add exit code:' .. code .. ' single:' .. single)
|
||||||
|
|
||||||
if code == 0 and single == 0 then
|
if code == 0 and single == 0 then
|
||||||
|
if vim.fn.exists(':GitGutter') == 2 then
|
||||||
|
vim.cmd('GitGutter')
|
||||||
|
end
|
||||||
nt.notify('stage files done!')
|
nt.notify('stage files done!')
|
||||||
else
|
else
|
||||||
nt.notify('stage files failed!')
|
nt.notify('stage files failed!')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user