mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 17:55:41 +08:00
perf(git): use notify for Git add
command
This commit is contained in:
parent
e9ecbbc530
commit
814c9a6e3c
5
bundle/git.vim/autoload/git/add.vim
vendored
5
bundle/git.vim/autoload/git/add.vim
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user