New Syntastic API forces us to select YCM

Previously, Syntastic would pick YCM as the default checker if YCM was
installed. The new Syntastic API does not do this. I don't know is this a bug or
not (talking to upstream), but until it's resolved, YCM has to force the use of
itself.
This commit is contained in:
Strahinja Val Markovic 2013-01-31 18:42:12 -08:00
parent f671fe72b2
commit f3cfc05608

View File

@ -58,6 +58,12 @@ function! youcompleteme#Enable()
set ut=2000
endif
" Needed so that YCM is used as the syntastic checker
let g:syntastic_cpp_checkers = ['ycm']
let g:syntastic_c_checkers = ['ycm']
let g:syntastic_objc_checkers = ['ycm']
let g:syntastic_objcpp_checkers = ['ycm']
" With this command, when the completion window is visible, the tab key
" (default) will select the next candidate in the window. In vim, this also
" changes the typed-in text to that of the candidate completion.