From 41fa574f21e2c4aa1ba202ddbf50aea5eaaf8aa3 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 23 Apr 2021 03:45:00 +0200 Subject: [PATCH] vimrc: auto-organize Go imports --- vimrc | 1 + 1 file changed, 1 insertion(+) 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