nvim-go
nvim-go copied to clipboard
Run goimports on save
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.