feat: golang organize import on save
This commit is contained in:
parent
310979a19f
commit
b94fa855e4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user