Onmi Window Doesn't Appear for PHP While Typing
Closed this issue · 2 comments
phatsk commented
Problems summary
When typing in a PHP file, I can start omni completion using <C-x><C-o>
to get the popup menu with phpcomplete-extneded working with Neocomplete, but if I type my input pattern then nothing happens.
Expected
Given this:
$dt = new DateTime;
$dt->
The omni window should appear with the properties and methods of DateTime
Environment Information
- OS: MacOS
- Vim version: NVIM v0.3.1-135-gbd51a0cd0
Provide a minimal .vimrc with less than 50 lines (Required!)
" Your minimal .vimrc
let g:neocomplete#enable_at_startup = 1
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*::'
let g:neocomplete#sources#syntax#min_keyword_length = 0
For phpcomplete-extended:
autocmd FileType php setlocal omnifunc=phpcomplete_extended#CompletePHP
The reproduce ways from Vim starting (Required!)
- Start vim
- Edit a php file
- Add the following:
$dt = new DateTime;
$dt->
Shougo commented
I have tested, but phpcomplete-extended does not work.
It is phpcomplete-extended problem.
But it seems not supported.
m2mdas/phpcomplete-extended#69
I think you should use phpcd.vim instead.
Shougo commented
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*::'
It is not needed. Because phpcomplete-extended has neocomplete source.