micro-editor / go-plugin

Auto gofmt/goimports and gorename
43 stars 5 forks source link

goimports not working #8

Closed Broyojo closed 3 years ago

Broyojo commented 3 years ago

When I am saving my code, it is not automatically importing packages.

Broyojo commented 3 years ago

I have goimports in my path so I do not know why it is not working. gofmt is in my path and it works fine.

zyedidia commented 3 years ago

Have you enabled it by turning on the go.goimports option?

Broyojo commented 3 years ago

How do you do that exactly? I am new to micro so I do not know a lot.

zyedidia commented 3 years ago

No problem, just run > set go.goimports true (press ctrl-e for the > prompt and type the command in).

Broyojo commented 3 years ago

oh nice it works now, thanks!