From 48d95bcd20f8dcbf4681763f623ea6561efe8195 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 23 Jul 2012 18:47:01 -0700 Subject: [PATCH] Doing buffervisit for clang only when clang on --- autoload/youcompleteme.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index b8129ee4..08989b0d 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -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