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

cmd/govim: provide commands to add/remove imports (with completion) #317

Open
myitcv opened this issue Jun 24, 2019 · 1 comment
Open

cmd/govim: provide commands to add/remove imports (with completion) #317

myitcv opened this issue Jun 24, 2019 · 1 comment
Labels
enhancement New feature or request onhold Probably pending some 3rd party issue
Milestone

Comments

@myitcv
Copy link
Member

myitcv commented Jun 24, 2019

Whether provided by gopls or not, govim should provide the ability to add/remove an import. Additionally, it should be possible to tab complete the import to add. Fuzzy matching could/should be provided by an external plugin, something like fzf.

e.g.

:GOVIMAddImport en<Tab>

... should then provide all the imports that start with (or contain, I think Vim defines these semantics somewhere) en. Which could include encoding/json.

If this is not provided by gopls, then govim should watch the main module and pre-cache the list of packages that can be imported.

@myitcv
Copy link
Member Author

myitcv commented Jul 5, 2019

Discussion continuing in golang/go#32749. Need some movement there first

@myitcv myitcv added the onhold Probably pending some 3rd party issue label Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request onhold Probably pending some 3rd party issue
Projects
None yet
Development

No branches or pull requests

1 participant