Skip to content

Run goimports on save #24

@chibby0ne

Description

@chibby0ne

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions