vimrc(go): add navigation,alternate commands

This commit is contained in:
surtur 2022-10-30 03:25:59 +01:00
parent 267acdf057
commit 870f104638
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -669,6 +669,13 @@ augroup vimgo
au FileType go nmap <Leader>gi <Plug>(go-info) au FileType go nmap <Leader>gi <Plug>(go-info)
au FileType go nmap <Leader>ge <Plug>(go-rename) au FileType go nmap <Leader>ge <Plug>(go-rename)
au FileType go nmap <Leader>gd <Plug>(go-doc) au FileType go nmap <Leader>gd <Plug>(go-doc)
" Navigation commands
au FileType go nmap <Leader>ds <Plug>(go-def-split)
au FileType go nmap <Leader>dv <Plug>(go-def-vertical)
" Alternate commands
au FileType go nmap <Leader>ae <Plug>(go-alternate-edit)
au FileType go nmap <Leader>av <Plug>(go-alternate-vertical)
" Use new vim 8.2 popup windows for Go Doc
augroup END augroup END
" go_tags " go_tags