-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add goimports
support to go layer
#3065
Comments
It can be easily added with Adding a guide in go layer's documentation is more than enough. |
Fix syl20bnr#3065 [ci-skip]
@ntcong Perhaps the best option would be to let the user have a configuration option, then apply your
Is spacemacs about providing a baseline configuration to customize, or something featureful out of the box? My impression is that Spacemacs is more about the latter while trying it's best not to sacrifice speed or customization ability. |
in order to know the configuration variable, the user will have to read the README, it is just 1 line of command, so configuration variable or a documented user-config is no different. Adding a new configuration pollutes the layer, and doesn't offer anything better, so I'm against this. |
This is my opinion: From a user perspective a user config is much less opaque. The one line command requires more indepth knowledge of spacemacs/emacs whereas the configuration option will let any user think "yes, I want to add goimports support" and follow typical spacemacs layer configuration style. |
Goimports adds required imports and removes unneeded ones on file save (and gofmts the buffer). It is a drop-in replacement fro
gofmt
with this extra functionality. I find it extremely convenient.Any thoughts on adding it to the
go
layer?The go layer already has a bunch of dependencies on external tools, so adding another one shouldn't be much of a hassle?
The text was updated successfully, but these errors were encountered: