Closed lookforit closed 11 years ago
You should write this.
if !exists('g:neocomplcache_force_omni_patterns')
let g:neocomplcache_force_omni_patterns = {}
endif
let g:neocomplcache_force_omni_patterns.python = '[^. \t]\.\w*'
By the way ,the fuzzy matching in V8.1 is very cool
Thanks.
I correct the configuration ,and no error appears now . But jedi seems still don't work integrated with Neo . For example ,the word "urllib" in python can be popped up by jedi ,but can't be listed by Neo automatically .
For example ,the word "urllib" in python can be popped up by jedi ,but can't be listed by Neo automatically .
This is your pattern's problem.
The pattern "[^. \t]\.\w*'
is not matched to "urllib".
It is feature.
Ok,got it . But i 'm still wondering how to expand the pattern to make Neo use the full completion power of Jedi.
let g:neocomplcache_force_omni_patterns.python = '\h\w*\|[^. \t]\.\w*'
This is full power completion. But too slow.
This is full power completion.
Yes ,it works.But truly a bit slow......
Another issue is the fuzzy match and mru feature cann't apply to jedi by now?
Another issue is the fuzzy match and mru feature cann't apply to jedi by now?
Yes. Because you use g:neocomplcache_force_omni_patterns
.
In g:neocomplcache_force_omni_patterns
, neocomplcache features(fuzzy match, mru, ...) is disabled.
You can use g:neocomplcache_omni_patterns
instead of g:neocomplcache_force_omni_patterns
.
But the complete function may not work.
After tried let Neo with full completion of jedi for couple of hours, I prefer to trigger jedi completion by hand. Because some precious features of Neo is overwritten in that way.
Is it possible to use g:neocomplcache_force_omni_patterns
while keeping auto-select feature enabled?
No. Because, g:neocomplcache_force_omni_patterns
cannot use neo features.
Hi, in order to make jedi-vim integrated with Neocomplcache , i add the following to _vimrc:
But vim will report error when starup : E121: Undefined variable: g:neocomplcache_force_omni_patterns
So what's wrong with it ?
By the way ,the fuzzy matching in V8.1 is very cool :+1: