nvim-go icon indicating copy to clipboard operation
nvim-go copied to clipboard

Run goimports on save

Open chibby0ne opened this issue 6 years ago • 0 comments

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.

chibby0ne avatar May 31 '18 20:05 chibby0ne