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
eclim + context completion type appears broken for PHP #144
Comments
As a quick followup after diffing through the docs; I was able to bring up the completefunc by setting the ContextDefaultCompletion type to the user completefunc via: let g:SuperTabDefaultCompletionType = 'context'
let g:SuperTabContextDefaultCompletionType = '<c-x><c-u>' I setup code completion following the eclim docs; Do you want me to add the Thanks as ever for your work. |
It should default to user completion if
No, that setting is not necessary, and as you've seen, it affects all file types regardless of whether they have user completion support or not, so adding that to the docs would confuse users.
Can you open your php file and check the following:
|
Interesting, it doesn't seem g:SuperTabContextTextOmniPrecedence is set -- although b: is :verbose set completefunc?
completefunc=eclim#php#complete#CodeComplete
Last set from /usr/share/vim/vimfiles/eclim/ftplugin/php.vim
:echo g:SuperTabContextTextOmniPrecedence
E121: Undefined variable: g:SuperTabContextTextOmniPrecedence
E15: Invalid expression: g:SuperTabContextTextOmniPrecedence
:echo b:SuperTabContextTextOmniPrecedence
['&omnifunc', '&completefunc'] My .vimrc |
Hmm, not sure that vim has a way to see where a variable is last set, so you may have to grep through your .vim dir to see if any of those plugins set that variable. Most likely it will be in an |
Actually I can reproduce this with a php file, so I'll dig around and see what I come up with. |
Ah, it's supertab's html.vim ftplugin that is causing this. Not sure why I have that in there. Let me think on this a bit to see if I can remember. |
Cool -- thanks for helping with this. Please take your time. I'm working in Eclipse for now ;) Happy to help if you point me in the right direction. |
Kind of gross, but I added some code to avoid this issue. |
Invoking SuperTab at the cursor position indicated by | brings up tag omnicompletion
<Ctrl-X><Ctrl-O>
, where I believe it is supposed to invoke the user completefunc<Ctrl-X><Ctrl-U>
provided by Eclim.The tags are limited, and the completefunc provides my desired autocompletions (methods of SiteTree).
My .vimrc includes
Any pointers appreciated!
The text was updated successfully, but these errors were encountered: