Skip to content

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

Open
@myitcv

Description

@myitcv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestonholdProbably pending some 3rd party issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions