mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 13:03:45 -05:00
Neovim: run diffs asynchronously.
This commit is contained in:
@@ -2,6 +2,7 @@ let s:file = ''
|
||||
let s:using_xolox_shell = -1
|
||||
let s:exit_code = 0
|
||||
let s:fish = &shell =~# 'fish'
|
||||
let s:jobs = {}
|
||||
|
||||
function! gitgutter#utility#warn(message)
|
||||
echohl WarningMsg
|
||||
@@ -162,3 +163,17 @@ endfunction
|
||||
function! gitgutter#utility#strip_trailing_new_line(line)
|
||||
return substitute(a:line, '\n$', '', '')
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#pending_job(job_id)
|
||||
let s:jobs[a:job_id] = 1
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#is_pending_job(job_id)
|
||||
return has_key(s:jobs, a:job_id)
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#job_output_received(job_id, event)
|
||||
if has_key(s:jobs, a:job_id)
|
||||
unlet s:jobs[a:job_id]
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user