Skip to content
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

Run command on save #56

Closed
DrJosh9000 opened this issue Apr 22, 2016 · 4 comments
Closed

Run command on save #56

DrJosh9000 opened this issue Apr 22, 2016 · 4 comments

Comments

@DrJosh9000
Copy link

It'd be awesome to auto gofmt or goimports over the code just before saving, or on a key combo.
I guess this would manifest as a customisable pre- or post-save command option.

@aerth
Copy link
Contributor

aerth commented Apr 23, 2016

#66

@DrJosh9000
Copy link
Author

Cool, didn't see #66. I think running a command post-save seems common and general enough to be a config option, but #66 would make me happy.

@aerth
Copy link
Contributor

aerth commented Apr 25, 2016

@DrJosh9000, #71 got merged and now you can use set goimports on at the ctrl+e prompt to use goimports.

@zyedidia
Copy link
Owner

You can now write a plugin for this. See the go plugin for an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants