Disable YCM extension by default

Move syntastic and eclim to the error section
This commit is contained in:
Evgeny Firsov 2016-01-29 21:32:29 -08:00 committed by Christian Brabandt
parent 450e2535af
commit 44045bc280
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ function! airline#extensions#load()
call airline#extensions#netrw#init(s:ext) call airline#extensions#netrw#init(s:ext)
endif endif
if exists(':YcmDiag') if get(g:, 'airline#extensions#ycm#enabled', 0)
call airline#extensions#ycm#init(s:ext) call airline#extensions#ycm#init(s:ext)
endif endif

View File

@ -119,10 +119,10 @@ function! airline#init#sections()
let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3v ']) let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3v '])
endif endif
if !exists('g:airline_section_error') 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 endif
if !exists('g:airline_section_warning') 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 endif
endfunction endfunction