Using neocomplcache and clang_complete?

I am trying to do clang_complete and neocomplcache to play well. My problem is that when I open the cpp , c , objc or objcpp , I get the following error from neocomplcache

 completefunc=ClangComplete^@^ILast set from ~/.vim/plugin/clang_complete.vim Another plugin set completefunc! Disabled neocomplcache. 

clang_complete.vim has the following configuration line:

 au FileType c,cpp,objc,objcpp call <SID>ClangCompleteInit() 

My question is, is there a way so that I no longer get this error? Is there a way I could use clang_complete and somehow still have access to tell neocomplcache fragments?

+6
source share
2 answers

The problem has been fixed in this configuration (in my Vimrc)

 if !exists('g:neocomplcache_force_omni_patterns') let g:neocomplcache_force_omni_patterns = {} endif let g:neocomplcache_force_overwrite_completefunc = 1 let g:neocomplcache_force_omni_patterns.c = \ '[^.[:digit:] *\t]\%(\.\|->\)' let g:neocomplcache_force_omni_patterns.cpp = \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' let g:neocomplcache_force_omni_patterns.objc = \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' let g:neocomplcache_force_omni_patterns.objcpp = \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' let g:clang_complete_auto = 0 let g:clang_auto_select = 0 let g:clang_use_library = 1 
+4
source

There is patch compatibility for neocomplcache and clang_complete.

+2
source

Source: https://habr.com/ru/post/928121/


All Articles