diff --git a/vimrc b/vimrc index 7f2ac9c..7cfe7d3 100644 --- a/vimrc +++ b/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 silent LspHover augroup END