Merge pull request #45 from JCavallo/job_function_api_change
Update job functions api to match latest neovim
This commit is contained in:
commit
5a1c8c0380
2 changed files with 6 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ let s:NimDebugger = {
|
||||||
\ 'pty': 1,
|
\ 'pty': 1,
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
function! s:NimDebugger.on_stdout(job, chunk)
|
function! s:NimDebugger.on_stdout(job, chunk, ...)
|
||||||
for line in a:chunk
|
for line in a:chunk
|
||||||
" *** endb| reached edb.nim(4) wat ***
|
" *** endb| reached edb.nim(4) wat ***
|
||||||
" let matched = matchlist(line, "\\*\\*\\* endb\|\(.*\)$")
|
" let matched = matchlist(line, "\\*\\*\\* endb\|\(.*\)$")
|
||||||
|
|
@ -18,11 +18,11 @@ function! s:NimDebugger.on_stdout(job, chunk)
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:NimDebugger.on_stderr(job, chunk)
|
function! s:NimDebugger.on_stderr(job, chunk, ...)
|
||||||
" echoerr "Error" . join(a:chunk, "\n")
|
" echoerr "Error" . join(a:chunk, "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:NimDebugger.on_exit()
|
function! s:NimDebugger.on_exit(...)
|
||||||
echoerr "Done"
|
echoerr "Done"
|
||||||
let s:edb_terminal_job = -2
|
let s:edb_terminal_job = -2
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
||||||
|
|
@ -41,13 +41,13 @@ let s:NimHighlighter = {
|
||||||
\ }
|
\ }
|
||||||
" \ 'pty': 1
|
" \ 'pty': 1
|
||||||
|
|
||||||
function! s:NimHighlighter.on_stdout(job, chunk)
|
function! s:NimHighlighter.on_stdout(job, chunk, ...)
|
||||||
if len(a:chunk[0]) != 0 && !(a:chunk[0] =~ "^usage")
|
if len(a:chunk[0]) != 0 && !(a:chunk[0] =~ "^usage")
|
||||||
call extend(self.lines, a:chunk)
|
call extend(self.lines, a:chunk)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:NimHighlighter.on_stderr(job, chunk)
|
function! s:NimHighlighter.on_stderr(job, chunk, ...)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! Remove(id)
|
function! Remove(id)
|
||||||
|
|
@ -57,7 +57,7 @@ function! Remove(id)
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:NimHighlighter.on_exit()
|
function! s:NimHighlighter.on_exit(...)
|
||||||
if empty(self.lines) && self.file != expand("%:p")
|
if empty(self.lines) && self.file != expand("%:p")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue