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:
parent
653611ccac
commit
03a81bdb31
@ -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'})
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user