2018-04-24 12:53:09 +00:00
|
|
|
" Convenient mappings for all Go things
|
|
|
|
au FileType go nmap <leader>r :GoRun!<CR>
|
|
|
|
au FileType go nmap <leader>e <Plug>(go-rename)
|
|
|
|
au FileType go nmap <leader>s <Plug>(go-implements)
|
|
|
|
au FileType go nmap <leader>t :GoTest!<CR>
|
|
|
|
au FileType go nmap <leader>c <Plug>(go-coverage)
|
|
|
|
au FileType go nmap <leader>v <Plug>(go-vet)
|
|
|
|
au FileType go nmap <leader>gd <Plug>(go-doc)
|
|
|
|
au FileType go nmap <leader>d :GoDef<CR>
|
|
|
|
au FileType go nmap <leader>D :GoDescribe<CR>
|
|
|
|
" Use `goimports` instead of `gofmt`
|
|
|
|
let g:go_fmt_command = "goimports"
|