vimrc: auto-organize Go imports
This commit is contained in:
parent
e593efc410
commit
41fa574f21
1
vimrc
1
vimrc
|
@ -366,6 +366,7 @@ augroup lsp_install
|
|||
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
||||
autocmd User lsp_diagnostics_updated call lightline#update()
|
||||
autocmd BufWritePre *.go silent LspDocumentFormatSync
|
||||
autocmd BufWritePre *.go silent LspCodeActionSync source.organizeImports
|
||||
" autocmd CursorHold <buffer> silent LspHover
|
||||
augroup END
|
||||
|
||||
|
|
Loading…
Reference in New Issue