summaryrefslogtreecommitdiffstats
path: root/vim/.vim/ftplugin/go.vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-10-08 12:09:20 -0400
committerJesse Luehrs <doy@tozt.net>2023-10-08 12:59:10 -0400
commit49570c8dd03448240897b37b68567352b790f16f (patch)
tree6c192a52046d5d0dd1b84a838befd8e777cfeafb /vim/.vim/ftplugin/go.vim
parent66939c71da756c1d9e07a88a4a8ea2a018650060 (diff)
downloadconf-49570c8dd03448240897b37b68567352b790f16f.tar.gz
conf-49570c8dd03448240897b37b68567352b790f16f.zip
convert to stow
Diffstat (limited to 'vim/.vim/ftplugin/go.vim')
-rw-r--r--vim/.vim/ftplugin/go.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/.vim/ftplugin/go.vim b/vim/.vim/ftplugin/go.vim
new file mode 100644
index 0000000..c4c065b
--- /dev/null
+++ b/vim/.vim/ftplugin/go.vim
@@ -0,0 +1,5 @@
+setlocal ts=4
+let b:ale_fixers = {"go": ["gofmt"]}
+let b:ale_fix_on_save = 1
+
+map <buffer> <CR> :ALEGoToDefinition<CR>