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)
|
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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user