Add vim-test plugin to spacevim

This commit is contained in:
Pavle Portic 2023-06-15 19:42:13 +02:00
parent 1633ae5621
commit 89c1b73ce4
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,7 @@ function! UserInit()
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install', 'for': ['markdown', 'vim-plug'] }
Plug 'mboughaba/i3config.vim'
Plug 'github/copilot.vim'
Plug 'vim-test/vim-test'
endfunction
@ -159,6 +160,13 @@ function! UserConfig()
nnoremap <Leader>wE :resize -5<CR>
endif
" vim-test mappings
nmap <silent> <leader>Tt :TestNearest<CR>
nmap <silent> <leader>Tf :TestFile<CR>
nmap <silent> <leader>Ta :TestSuite<CR>
nmap <silent> <leader>Tl :TestLast<CR>
nmap <silent> <leader>Tg :TestVisit<CR>
" FZF mappings
noremap <C-P> :GFiles<CR>
noremap <leader>ff :Files<CR>