vim-airline-themes/autoload/airline/extensions/syntastic.vim

16 lines
393 B
VimL
Raw Normal View History

" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: et ts=2 sts=2 sw=2
2013-08-06 10:56:30 +08:00
function! airline#extensions#syntastic#get_warnings()
let errors = SyntasticStatuslineFlag()
if strlen(errors) > 0
return ' '.errors
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)
let g:airline_parts.syntastic = '%{airline#extensions#syntastic#get_warnings()}'
2013-08-07 09:42:32 +08:00
endfunction