ncm2-phpactor
ncm2-phpactor copied to clipboard
How to get import auto completion?
When I am writing a use statement I am getting a lot of suggestions from cwd with no useful class path suggestions, like this:

What I would expect is a list of next possible class path components - not files from my cwd.
If I start to write the class name (without the path) in the use statement i get this:

so I know that the class names are recognized, however I don't know any means of inserting the displayed path.
Is there a way to get class path components suggested while writing? Is there a way to insert the class path from the list seen in the second screenshot?
I have tried disabling ncm2/ncm2-path, but that gave no results.
Unfortunately, this is still WIP https://github.com/phpactor/ncm2-phpactor/issues/8
Thank you for your prompt answer!
I guess, for now, I will stick to using :call phpactor#UseAdd().
A workaround maybe: au CompleteDone *.php call phpactor#UseAdd()
The work of #8, optimally needs uniformed ncm2 API . It doesn't stop you from hacking the editor yourself.