1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

perf(git): use notify for Git add command

This commit is contained in:
wsdjeg 2022-10-29 10:11:34 +08:00
parent e9ecbbc530
commit 814c9a6e3c

View File

@ -8,6 +8,7 @@
" <
let s:JOB = SpaceVim#api#import('job')
let s:NOTI = SpaceVim#api#import('notify')
function! s:replace_argvs(argvs) abort
let argvs = []
@ -38,9 +39,9 @@ function! s:on_exit(id, data, event) abort
if exists(':GitGutter')
GitGutter
endif
echo 'done!'
call s:NOTI.notify('stage files done!')
else
echo 'failed!'
call s:NOTI.notify('stage files failed!')
endif
endfunction