summaryrefslogtreecommitdiffstats
path: root/vim/.vim/ftplugin/go.vim
diff options
context:
space:
mode:
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>