Show YouCompleteMe error and warning count in the statusline

Signed-off-by: Evgeny Firsov <firs1978@gmail.com>
This commit is contained in:
Evgeny Firsov
2015-12-25 21:10:55 -08:00
parent 06f2cb5a89
commit 6d81660fd8
6 changed files with 53 additions and 7 deletions

View File

@@ -110,8 +110,11 @@ function! airline#init#sections()
if !exists('g:airline_section_z')
let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3v '])
endif
if !exists('g:airline_section_error')
let g:airline_section_error = airline#section#create(['ycm_error_count'])
endif
if !exists('g:airline_section_warning')
let g:airline_section_warning = airline#section#create(['syntastic', 'eclim', 'whitespace'])
let g:airline_section_warning = airline#section#create(['ycm_warning_count', 'syntastic', 'eclim', 'whitespace'])
endif
endfunction