From b4f3c7cea9107bc25fcb1b53b4d1483c796cb905 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Fri, 8 Jul 2016 15:03:42 -0700 Subject: [PATCH] neovim: tweak vim-go options --- configuration/common/pkg/neovim.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configuration/common/pkg/neovim.nix b/configuration/common/pkg/neovim.nix index 2dd5693..b29314e 100644 --- a/configuration/common/pkg/neovim.nix +++ b/configuration/common/pkg/neovim.nix @@ -177,7 +177,10 @@ in { let g:go_highlight_interfaces = 1 let g:go_highlight_operators = 1 let g:go_highlight_build_constraints = 1 -" let g:go_fmt_command = "goimports" + let g:go_fmt_command = 'gofmt' + let g:go_fmt_options= '-s' + let g:go_def_mode = 'godef' + let g:go_def_reuse_buffer = 0 au FileType go nmap gds (go-def-split) au FileType go nmap gdv (go-def-vertical)