Closed jojojames closed 11 years ago
In g:neocomplcache_force_omni_patterns, neocomplcache features are disabled(contains regex). So, this is feature. I can't fix.
I have a .clang_complete file in my project directory and can manually complete from clang's extra source libraries with C-X C-O. Is there a way to auto complete with clang typing regular letters?
You should not to do. It is too heavy and all neocomplcache features are disabled.
I still get regular completions outside of the forced patterns. Is it possible to use Omnicppcomplete for completions outside of the forced patterns, and clang for the patterns itself?
I would think with Omnicppcomplete and a tags file containing the completions I want, it would complete that way, but from what I've tried, it doesn't seem to work.
Is it possible to use Omnicppcomplete for completions outside of the forced patterns, and clang for the patterns itself?
No. You must call omnifunc manually by <C-x><C-o>
.
" Clang Complete let g:clang_complete_auto=0 let g:clang_auto_select=0 let g:clang_user_options='|| exit 0' let g:clang_use_library=1 set completeopt=menu,menuone,longest let g:clang_jumpto_back_key="<C->"
" Compatibility with Clang 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_omnipatterns.c = \ '[^.[:digit:] \t]\%(.|->)' let g:neocomplcache_force_omnipatterns.cpp = \ '[^.[:digit:] *\t]\%(.|->)|\h\w::' let g:neocomplcache_force_omnipatterns.objc = \ '[^.[:digit:] \t]\%(.|->)' let g:neocomplcache_force_omnipatterns.objcpp = \ '[^.[:digit:] *\t]\%(.|->)|\h\w::'
I have a .clang_complete file in my project directory and can manually complete from clang's extra source libraries with C-X C-O. Is there a way to auto complete with clang typing regular letters?
For reference, I would be completing lines like this.
SDL_Init( SDL_INIT_EVERYTHING );
C-X C-O will show every possible SDL completion if I type SDL (C-X C-O).
Also is there a way to disable completion while inside a comment?
Thanks.