]>
Commit | Line | Data |
---|---|---|
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 " }}} |