[feat] add golang iferr key binding
This commit is contained in:
parent
687272ed26
commit
246b7300bc
1
.vimrc
1
.vimrc
@ -397,6 +397,7 @@ let g:tagbar_type_go = {
|
|||||||
" vim-go setting
|
" vim-go setting
|
||||||
autocmd FileType go nmap tgd <Plug>(go-def-tab)
|
autocmd FileType go nmap tgd <Plug>(go-def-tab)
|
||||||
autocmd FileType go nmap <leader>err <Plug>(go-iferr)
|
autocmd FileType go nmap <leader>err <Plug>(go-iferr)
|
||||||
|
au FileType go imap <c-y>e <Plug>(go-iferr)
|
||||||
let g:go_fmt_fail_silently = 1
|
let g:go_fmt_fail_silently = 1
|
||||||
let g:go_fmt_command = "goimports"
|
let g:go_fmt_command = "goimports"
|
||||||
let g:go_def_mode = 'godef'
|
let g:go_def_mode = 'godef'
|
||||||
|
Loading…
Reference in New Issue
Block a user