neovim: tweak vim-go options
This commit is contained in:
parent
3f1f16ad13
commit
b4f3c7cea9
1 changed files with 4 additions and 1 deletions
|
@ -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 <Leader>gds <Plug>(go-def-split)
|
||||
au FileType go nmap <Leader>gdv <Plug>(go-def-vertical)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue