From 2711863088294063931a028c9161e305cc57dba9 Mon Sep 17 00:00:00 2001 From: Evgeny Firsov Date: Thu, 28 Jan 2016 00:40:27 -0800 Subject: [PATCH] Added documentation for YCM extenstion Signed-off-by: Evgeny Firsov --- doc/airline.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/airline.txt b/doc/airline.txt index 9b5f00f8..02855ccb 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -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* @@ -625,6 +626,17 @@ vim-ctrlspace * enable/disable vim-ctrlspace integration > let g:airline#extensions#ctrlspace#enabled = 1 < +------------------------------------- *airline-ycm* +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*