Fixing the ycm files

The new Syntastic API was not correctly merged into these files. This commit
should fix this.
This commit is contained in:
Strahinja Val Markovic 2013-01-31 18:39:05 -08:00
parent 653611ccac
commit 03a81bdb31
2 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,10 @@ if exists("loaded_ycm_c_syntax_checker")
endif
let loaded_ycm_c_syntax_checker = 1
function! SyntaxCheckers_c_ycm_IsAvailable()
return exists('g:loaded_youcompleteme')
endfunction
if !exists('g:loaded_youcompleteme')
finish
endif
@ -23,3 +27,6 @@ function! SyntaxCheckers_c_GetLocList()
return youcompleteme#CurrentFileDiagnostics()
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'ycm'})

View File

@ -15,7 +15,7 @@ if exists("loaded_ycm_cpp_syntax_checker")
endif
let loaded_ycm_cpp_syntax_checker = 1
function! SyntaxCheckers_objc_ycm_IsAvailable()
function! SyntaxCheckers_cpp_ycm_IsAvailable()
return exists('g:loaded_youcompleteme')
endfunction