summary refs log tree commit diff
path: root/vim/ftplugin/go.vim
blob: e3c576551f6cce783dcb79286be5419eefc65730 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
" Run goimports when running gofmt
let g:go_fmt_command = "goimports"

" Show the progress when running :GoCoverage
let g:go_echo_command_info = 1

" Show type information
let g:go_auto_type_info = 1

" Highlight variable uses
let g:go_auto_sameids = 1

" Add the failing test name to the output of :GoTest
let g:go_test_show_name = 1

" gometalinter configuration
let g:go_metalinter_command = ""
let g:go_metalinter_deadline = "5s"

" Set whether the JSON tags should be snakecase or camelcase.
let g:go_addtags_transform = "snakecase"