-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I do php function omni complete #33
Comments
You can use PHP omni function in neocomplete. if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns = {}
endif
let g:neocomplete#sources#omni#input_patterns.php =
\ '[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' |
I did the same settings. The completion works when I typed after -> and ::, but not works when I just type like "set_"..., I have to hit |
If you set this settings, you can use full completion. But it is too heavy. |
Great thanks. I tried it, it works as I want. But, you said you don't recommend it, so, what is the best practice for my purpose? Using dictionary/keyword for native php function completion? |
PHP omni completion is too slow.
|
I tried https://github.com/shawncplus/phpcomplete.vim with neocomplete, the performance seems acceptable. |
OK. I will add it in the documentation. |
Is that possible I set the omni pattern like this
This setting will pop up neocomplete after -> and :: But, when I click, for example YouCompleteMe has this feature. If neocomplete can do the same, then we don't need to worry about the some heavy completions like php or ruby? |
inoremap <expr><C-Space> neocomplete#start_manual_complete('omni') Yes, you can. |
Wow ...amazing. I really like it. It just works like YouCompleteMe, and the performance is quite acceptable with https://github.com/shawncplus/phpcomplete.vim. Great thanks. |
How can I do php function omni complete without hit
<c-x><c-o>
? I tried several settings, no luck :(The text was updated successfully, but these errors were encountered: