From 44045bc280d857517cfa91980323590c655428e1 Mon Sep 17 00:00:00 2001 From: Evgeny Firsov Date: Fri, 29 Jan 2016 21:32:29 -0800 Subject: [PATCH] Disable YCM extension by default Move syntastic and eclim to the error section --- autoload/airline/extensions.vim | 2 +- autoload/airline/init.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 25f47ec..0194246 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -138,7 +138,7 @@ function! airline#extensions#load() call airline#extensions#netrw#init(s:ext) endif - if exists(':YcmDiag') + if get(g:, 'airline#extensions#ycm#enabled', 0) call airline#extensions#ycm#init(s:ext) endif diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 500daae..6a4cca8 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -119,10 +119,10 @@ function! airline#init#sections() 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']) + let g:airline_section_error = airline#section#create(['ycm_error_count', 'syntastic', 'eclim']) endif if !exists('g:airline_section_warning') - let g:airline_section_warning = airline#section#create(['ycm_warning_count', 'syntastic', 'eclim', 'whitespace']) + let g:airline_section_warning = airline#section#create(['ycm_warning_count', 'whitespace']) endif endfunction