Merge pull request #902 from efirs/ef_ycm_error_warning_count

Show YouCompleteMe error and warning count in the statusline
This commit is contained in:
Christian Brabandt
2016-01-28 10:11:37 +01:00
7 changed files with 67 additions and 9 deletions

View File

@@ -117,8 +117,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