Disable YCM extension by default
Move syntastic and eclim to the error section
This commit is contained in:
parent
450e2535af
commit
44045bc280
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue