aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/Powerline/Functions/syntastic.vim
blob: e2c04fa6ad92c3d6fa852c4fdc7085917162b5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 " }}}