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)
endif
if exists(':YcmDiag')
if get(g:, 'airline#extensions#ycm#enabled', 0)
call airline#extensions#ycm#init(s:ext)
endif

View File

@ -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