aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2022-08-24 20:48:57 +0200
committerTeddy Wing2022-08-24 21:24:36 +0200
commit1394a4287b7aa0aa3d89bb2fd66fd77f0d3e15f3 (patch)
tree532ffa8ea9c9ba91feaf46450eb59a4a958bf907 /vimrc
parent86646c99e16bdce6b156d6d3433a1251ae7482ac (diff)
downloaddotvim-1394a4287b7aa0aa3d89bb2fd66fd77f0d3e15f3.tar.bz2
vimrc: Turn off Vim-Go goimports on save
The new version of Vim-Go that I upgraded to added a new auto-format on save hook that runs goimports. Turn if off like we did with its automatic gofmt.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index ded1b17..6d20402 100644
--- a/vimrc
+++ b/vimrc
@@ -500,6 +500,9 @@
" * Add `:Co` command, alias for `:Copy`. Adding to take precedence over
" `:Context…` commands.
"
+" 2022.08.24:
+" * Turn off vim-go goimports on save.
+"
" Pathogen
@@ -732,6 +735,7 @@ let g:paredit_disable_ftindent = 1
let g:go_version_warning = 0
let g:go_fmt_command = 'goimports'
let g:go_fmt_autosave = 0
+let g:go_imports_autosave = 0
let g:go_gopls_enabled = 0
let g:go_def_mapping_enabled = 0
let g:go_list_height = 10