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 goimports on save #24

Open
chibby0ne opened this issue May 31, 2018 · 0 comments
Open

Run goimports on save #24

chibby0ne opened this issue May 31, 2018 · 0 comments
Assignees

Comments

@chibby0ne
Copy link

Since one of nvim-go stated goals is to be fully compatible with vim-go, I noticed that one of the config options missing at the moment is what command to run for auto formatting when saving.

Basically, we should have a way of specifying a similar flag/variable as done in vim-go with:

let g:go_fmt_command = "goimports"

This runs goimports on save and adds/removes the required/unused imports respectively.

See the mirror issue in vim-go.

@zchee zchee self-assigned this Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants