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

@@ -225,7 +225,8 @@ section.
let g:airline_section_x (tagbar, filetype, virtualenv)
let g:airline_section_y (fileencoding, fileformat)
let g:airline_section_z (percentage, line number, column number)
let g:airline_section_warning (syntastic, whitespace)
let g:airline_section_error (ycm_error_count)
let g:airline_section_warning (ycm_warning_count, syntastic, whitespace)
" here is an example of how you could replace the branch indicator with
" the current working directory, followed by the filename.
@@ -275,7 +276,7 @@ configuration values that you can use.
(first array is the left side, second array is the right side). >
let g:airline#extensions#default#layout = [
\ [ 'a', 'b', 'c' ],
\ [ 'x', 'y', 'z', 'warning' ]
\ [ 'x', 'y', 'z', 'error', 'warning' ]
\ ]
<
------------------------------------- *airline-quickfix*
@@ -662,6 +663,17 @@ vim-ctrlspace <https://github.com/szw/vim-ctrlspace>
* enable/disable vim-ctrlspace integration >
let g:airline#extensions#ctrlspace#enabled = 1
<
------------------------------------- *airline-ycm*
YouCompleteMe <https://github.com/Valloric/YouCompleteMe>
Shows number of errors and warnings in the current file detected by YCM.
* set error count prefix >
let g:airline#extensions#ycm#error_symbol = 'E:'
* set warning count prefix >
let g:airline#extensions#ycm#warning_symbol = 'W:'
<
==============================================================================
ADVANCED CUSTOMIZATION *airline-advanced-customization*