Update job functions api to match latest neovim
This commit is contained in:
parent
a993bd7fde
commit
201935a0e7
2 changed files with 6 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ let s:NimDebugger = {
|
|||
\ 'pty': 1,
|
||||
\ }
|
||||
|
||||
function! s:NimDebugger.on_stdout(job, chunk)
|
||||
function! s:NimDebugger.on_stdout(job, chunk, ...)
|
||||
for line in a:chunk
|
||||
" *** endb| reached edb.nim(4) wat ***
|
||||
" let matched = matchlist(line, "\\*\\*\\* endb\|\(.*\)$")
|
||||
|
|
@ -18,11 +18,11 @@ function! s:NimDebugger.on_stdout(job, chunk)
|
|||
endfor
|
||||
endfunction
|
||||
|
||||
function! s:NimDebugger.on_stderr(job, chunk)
|
||||
function! s:NimDebugger.on_stderr(job, chunk, ...)
|
||||
" echoerr "Error" . join(a:chunk, "\n")
|
||||
endfunction
|
||||
|
||||
function! s:NimDebugger.on_exit()
|
||||
function! s:NimDebugger.on_exit(...)
|
||||
echoerr "Done"
|
||||
let s:edb_terminal_job = -2
|
||||
endfunction
|
||||
|
|
|
|||
|
|
@ -41,13 +41,13 @@ let s:NimHighlighter = {
|
|||
\ }
|
||||
" \ '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")
|
||||
call extend(self.lines, a:chunk)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:NimHighlighter.on_stderr(job, chunk)
|
||||
function! s:NimHighlighter.on_stderr(job, chunk, ...)
|
||||
endfunction
|
||||
|
||||
function! Remove(id)
|
||||
|
|
@ -57,7 +57,7 @@ function! Remove(id)
|
|||
endtry
|
||||
endfunction
|
||||
|
||||
function! s:NimHighlighter.on_exit()
|
||||
function! s:NimHighlighter.on_exit(...)
|
||||
if empty(self.lines) && self.file != expand("%:p")
|
||||
return
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue