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:
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)
|
||||
|
||||
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!')
|
||||
|
Loading…
Reference in New Issue
Block a user