feat: golang organize import on save

This commit is contained in:
Klesh Wong 2021-09-08 10:44:18 +08:00
parent 310979a19f
commit b94fa855e4

View File

@ -347,3 +347,7 @@ autocmd BufEnter,BufRead commitmsg.md :set colorcolumn=100
" nerdtree " nerdtree
nnoremap <leader>t :NERDTreeToggle<CR> nnoremap <leader>t :NERDTreeToggle<CR>
" go organize import on save
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
autocmd BufWritePre *.go :OR