vim/neo-vim plugin for sort/group imports in current golang
Install sortimport dependency by doing
go install github.com/CaiJinKen/sortimport@latest
Now add the plugin to vim
I use vim-plug and in that you can add using
Plug 'CaiJinKen/vim-sortimport'
and run :PlugInstall
Use :SortImport
by calling it in normal mode