vim: add \t for GoTestFunc

This commit is contained in:
Patrick Cao Huu Thien 2025-12-17 22:45:39 +01:00
parent cbf836fdb7
commit 4ae076e5fa
Signed by untrusted user who does not match committer: pcao
GPG Key ID: 7493CA6D56F2D2F7
1 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,10 @@ autocmd FileType go nmap <leader>m <Plug>(go-test)
autocmd FileType go nmap <leader>a :GoAlternate<cr>
autocmd FileType go nmap gd <Plug>(go-def)
autocmd FileType go set foldmethod=syntax
" go test
autocmd FileType go nmap <leader>t :GoTestFunc<cr>
let g:go_test_show_name = 1
let g:go_test_timeout = '2s'
" :Refactor extract newfunc
" Plugin 'godoctor/godoctor.vim'