1
0
Fork 0
mirror of synced 2024-12-28 09:33:21 -05:00
ultimate-vim/sources_non_forked/vim-powerline/autoload/Powerline/Functions/syntastic.vim

17 lines
488 B
VimL
Raw Normal View History

2012-08-16 23:41:25 -04:00
function! Powerline#Functions#syntastic#GetErrors(line_symbol) " {{{
if ! exists('g:syntastic_stl_format')
" Syntastic hasn't been loaded yet
return ''
endif
" Temporarily change syntastic output format
let old_stl_format = g:syntastic_stl_format
let g:syntastic_stl_format = '%E{ ERRORS (%e) '. a:line_symbol .' %fe }%W{ WARNINGS (%w) '. a:line_symbol .' %fw }'
let ret = SyntasticStatuslineFlag()
let g:syntastic_stl_format = old_stl_format
return ret
endfunction " }}}