]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/autoload/Powerline/Functions/syntastic.vim
Add DS_Store to gitignore
[rbdr/dotfiles] / vim / autoload / Powerline / Functions / syntastic.vim
1 function! Powerline#Functions#syntastic#GetErrors(line_symbol) " {{{
2 if ! exists('g:syntastic_stl_format')
3 " Syntastic hasn't been loaded yet
4 return ''
5 endif
6
7 " Temporarily change syntastic output format
8 let old_stl_format = g:syntastic_stl_format
9 let g:syntastic_stl_format = '╱╱╱%E{ ERRORS (%e) '. a:line_symbol .' %fe }%W{ WARNINGS (%w) '. a:line_symbol .' %fw }╱╱╱'
10
11 let ret = SyntasticStatuslineFlag()
12
13 let g:syntastic_stl_format = old_stl_format
14
15 return ret
16 endfunction " }}}