Doing buffervisit for clang only when clang on
This commit is contained in:
parent
74c363ef60
commit
48d95bcd20
@ -76,7 +76,7 @@ function! s:OnBufferVisit()
|
||||
call s:SetCompleteFunc()
|
||||
py identcomp.OnFileEnter()
|
||||
|
||||
if pyeval('ycm.ClangAvailableForFile()')
|
||||
if g:ycm_clang_completion_enabled && pyeval('ycm.ClangAvailableForFile()')
|
||||
py clangcomp.OnFileEnter()
|
||||
endif
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user