feat(nvim): add a mapping to open go tests in a split

This commit is contained in:
Bruno Carlin 2024-04-20 17:16:52 +02:00
parent 00f6d6b3b1
commit 7e1edd9412
Signed by: bcarlin
GPG key ID: 8E254EA0FFEB9B6D

View file

@ -37,6 +37,7 @@ vim.cmd [[
autocmd FileType go nnoremap <buffer><leader>tF :GoTestFile<cr>
autocmd FileType go nnoremap <buffer><leader>ta :GoTestAll<cr>
autocmd FileType go nnoremap <buffer><leader>a :GoToTest<cr>
autocmd FileType go nnoremap <buffer><leader>A :GoToTest vsplit<cr>
autocmd User NvimGoTestPopupPost nnoremap <buffer><Esc> :q<cr>
augroup END
]]