Use callbacks to indicate compile status
This commit is contained in:
parent
ab1fc98ae2
commit
4f11b80ef1
@ -78,6 +78,16 @@ endfunction
|
|||||||
" }}}1
|
" }}}1
|
||||||
function! latex#latexmk#callback(status) " {{{1
|
function! latex#latexmk#callback(status) " {{{1
|
||||||
call latex#latexmk#errors(0)
|
call latex#latexmk#errors(0)
|
||||||
|
redraw!
|
||||||
|
|
||||||
|
if a:status
|
||||||
|
echohl Statement
|
||||||
|
echo "latexmk compile: success"
|
||||||
|
else
|
||||||
|
echohl Error
|
||||||
|
echo "latexmk compile: fail"
|
||||||
|
endif
|
||||||
|
echohl None
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
@ -151,7 +161,7 @@ function! latex#latexmk#compile() " {{{1
|
|||||||
|
|
||||||
if g:latex_latexmk_continuous
|
if g:latex_latexmk_continuous
|
||||||
call s:latexmk_set_pid(data)
|
call s:latexmk_set_pid(data)
|
||||||
echomsg 'latexmk continuous mode started successfully'
|
echomsg 'latexmk started in continuous mode ...'
|
||||||
|
|
||||||
" Get window ID
|
" Get window ID
|
||||||
if g:latex_view_method == 'mupdf'
|
if g:latex_view_method == 'mupdf'
|
||||||
@ -167,8 +177,7 @@ function! latex#latexmk#compile() " {{{1
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
echomsg 'latexmk compiling ...'
|
||||||
echomsg 'latexmk compiling'
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user