2013-08-11 23:24:08 +08:00
|
|
|
" MIT License. Copyright (c) 2013 Bailey Ling.
|
2013-08-20 23:02:17 +08:00
|
|
|
" vim: et ts=2 sts=2 sw=2
|
2013-08-06 10:56:30 +08:00
|
|
|
|
2013-08-28 07:38:34 +08:00
|
|
|
function! airline#extensions#syntastic#get_warnings()
|
|
|
|
let errors = SyntasticStatuslineFlag()
|
|
|
|
if strlen(errors) > 0
|
2013-08-28 07:57:18 +08:00
|
|
|
return errors.' '
|
2013-08-28 07:38:34 +08:00
|
|
|
endif
|
|
|
|
return ''
|
2013-08-06 10:56:30 +08:00
|
|
|
endfunction
|
2013-08-07 09:42:32 +08:00
|
|
|
|
|
|
|
function! airline#extensions#syntastic#init(ext)
|
2013-08-28 07:38:34 +08:00
|
|
|
let g:airline_parts.syntastic = '%{airline#extensions#syntastic#get_warnings()}'
|
2013-08-07 09:42:32 +08:00
|
|
|
endfunction
|
2013-08-20 23:02:17 +08:00
|
|
|
|