Skip to content
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 to get import auto completion? #17

Open
kmbt opened this issue Jan 23, 2019 · 4 comments
Open

How to get import auto completion? #17

kmbt opened this issue Jan 23, 2019 · 4 comments

Comments

@kmbt
Copy link

kmbt commented Jan 23, 2019

When I am writing a use statement I am getting a lot of suggestions from cwd with no useful class path suggestions, like this:

screenshot from 2019-01-23 17-14-42

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:

screenshot from 2019-01-23 17-12-24

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?

@kmbt kmbt changed the title How to use import auto completion? How to get import auto completion? Jan 23, 2019
@kmbt
Copy link
Author

kmbt commented Jan 23, 2019

I have tried disabling ncm2/ncm2-path, but that gave no results.

@roxma
Copy link
Collaborator

roxma commented Jan 23, 2019

Unfortunately, this is still WIP #8

@kmbt
Copy link
Author

kmbt commented Jan 23, 2019

Thank you for your prompt answer!
I guess, for now, I will stick to using :call phpactor#UseAdd().

@roxma
Copy link
Collaborator

roxma commented Jan 23, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants