mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 18:31:02 +08:00
eclim: only consider signs placed by eclim
Ref: https://github.com/bling/vim-airline/pull/293
This commit is contained in:
parent
87951ba090
commit
ba899b2dde
|
@ -17,12 +17,18 @@ endfunction
|
||||||
|
|
||||||
function! airline#extensions#eclim#get_warnings()
|
function! airline#extensions#eclim#get_warnings()
|
||||||
let eclimList = eclim#display#signs#GetExisting()
|
let eclimList = eclim#display#signs#GetExisting()
|
||||||
|
|
||||||
if !empty(eclimList)
|
if !empty(eclimList)
|
||||||
let errorsLine = eclimList[0]['line']
|
" Remove any non-eclim signs (see eclim#display#signs#Update)
|
||||||
let errorsNumber = len(eclimList)
|
call filter(eclimList, "v:val.name =~ '^\(qf_\)\?\(error\|info\|warning\)$'")
|
||||||
let errors = "[Eclim: line:".string(errorsLine)." (".string(errorsNumber).")]"
|
|
||||||
if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == ''
|
if !empty(eclimList)
|
||||||
return errors.(g:airline_symbols.space)
|
let errorsLine = eclimList[0]['line']
|
||||||
|
let errorsNumber = len(eclimList)
|
||||||
|
let errors = "[Eclim: line:".string(errorsLine)." (".string(errorsNumber).")]"
|
||||||
|
if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == ''
|
||||||
|
return errors.(g:airline_symbols.space)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user