-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Removes imports on :w. #43
Comments
It works perfectly for me. Nothing has changed on formatting too. Can you give me an example snippet or code for me to test it? |
package main
import (
"fmt"
)
func main() {} Hmm, just realized it only seems to happen with an empty |
Ahh, I see now, gofmt also removes unused imports. facepalm Anyway, thanks, and have a nice day. :) |
@zackp30 goimports is removing unused impots :) But you can change it to let g:go_fmt_command = "gofmt" This will only format but will not add or remove imports automatically |
Alright, thanks. :) |
On :w it removes all lines enclosed in
import
. It was working fine before, but now it doesn't.(Thanks for making this plugin, by the way, it's very useful. :))
The text was updated successfully, but these errors were encountered: