ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
2.06k stars 123 forks source link

Add :GoImport package alias #351

Open Rhymond opened 1 year ago

Rhymond commented 1 year ago

Sometimes, when I import a package using :GoImport, I need to provide an alias for the package name. This is necessary if a package with the same name already exists. For example:

awsconfig "github.com/aws/aws-sdk-go-v2/config"

Is it possible to add an imported package alias using :GoImport? Let me know if I can help you with the implementation if it doesn't exist