mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Updated plugins and added vim-markdown
This commit is contained in:
@ -162,8 +162,12 @@ function! s:async_guru(args) abort
|
||||
|
||||
let status = {}
|
||||
let exitval = 0
|
||||
let closed = 0
|
||||
let exited = 0
|
||||
|
||||
function! s:exit_cb(job, exitval) closure
|
||||
let exited = 1
|
||||
|
||||
let status = {
|
||||
\ 'desc': 'last status',
|
||||
\ 'type': statusline_type,
|
||||
@ -176,9 +180,21 @@ function! s:async_guru(args) abort
|
||||
endif
|
||||
|
||||
call go#statusline#Update(status_dir, status)
|
||||
|
||||
if closed
|
||||
call s:complete()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:close_cb(ch) closure
|
||||
let closed = 1
|
||||
|
||||
if exited
|
||||
call s:complete()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:complete() closure
|
||||
let out = join(messages, "\n")
|
||||
|
||||
if has_key(a:args, 'custom_parse')
|
||||
@ -597,11 +613,9 @@ function! s:parse_guru_output(exit_val, output, title) abort
|
||||
return
|
||||
endif
|
||||
|
||||
let old_errorformat = &errorformat
|
||||
let errformat = "%f:%l.%c-%[%^:]%#:\ %m,%f:%l:%c:\ %m"
|
||||
let l:listtype = go#list#Type("_guru")
|
||||
call go#list#ParseFormat(l:listtype, errformat, a:output, a:title)
|
||||
let &errorformat = old_errorformat
|
||||
|
||||
let errors = go#list#Get(l:listtype)
|
||||
call go#list#Window(l:listtype, len(errors))
|
||||
|
Reference in New Issue
Block a user