Changed test shortcuts
Use leader-based sequences, document the fuck out of them
This commit is contained in:
parent
36640f7360
commit
dd93afedb6
3 changed files with 13 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
let test#strategy = 'asyncrun_background'
|
let test#strategy = 'asyncrun_background'
|
||||||
|
|
||||||
" Shortcuts
|
" Shortcuts
|
||||||
nmap <silent> <F10> :TestSuite<CR>
|
nmap <silent> <Leader>Ta :TestSuite<CR>
|
||||||
nmap <silent> <F11> :TestFile<CR>
|
nmap <silent> <Leader>Tf :TestFile<CR>
|
||||||
nmap <silent> <S-F11> :TestNearest<CR>
|
nmap <silent> <Leader>Tc :TestNearest<CR>
|
||||||
nmap <silent> <C-F11> :TestLast<CR>
|
nmap <silent> <Leader>TT :TestLast<CR>
|
||||||
|
|
|
@ -8,6 +8,7 @@ let g:which_key_fallback_to_native_key = 1
|
||||||
let g:which_key_map[' '] = [ 'call feedkeys(":nohlsearch\n")' , 'clear-search' ]
|
let g:which_key_map[' '] = [ 'call feedkeys(":nohlsearch\n")' , 'clear-search' ]
|
||||||
let g:which_key_map.e = 'file-explorer'
|
let g:which_key_map.e = 'file-explorer'
|
||||||
let g:which_key_map.u = 'undo-tree'
|
let g:which_key_map.u = 'undo-tree'
|
||||||
|
let g:which_key_map.q = 'toggle-quickfix'
|
||||||
|
|
||||||
" Options
|
" Options
|
||||||
let g:which_key_map.o = { 'name' : '+options' }
|
let g:which_key_map.o = { 'name' : '+options' }
|
||||||
|
@ -78,3 +79,10 @@ let g:which_key_map.t.z = 'terminal-top'
|
||||||
let g:which_key_map.t.q = 'terminal-left'
|
let g:which_key_map.t.q = 'terminal-left'
|
||||||
let g:which_key_map.t.s = 'terminal-bottom'
|
let g:which_key_map.t.s = 'terminal-bottom'
|
||||||
let g:which_key_map.t.d = 'terminal-right'
|
let g:which_key_map.t.d = 'terminal-right'
|
||||||
|
|
||||||
|
" Tests
|
||||||
|
let g:which_key_map.T = { 'name' : '+tests' }
|
||||||
|
let g:which_key_map.T.a = 'run-all'
|
||||||
|
let g:which_key_map.T.f = 'run-file'
|
||||||
|
let g:which_key_map.T.c = 'run-nearest'
|
||||||
|
let g:which_key_map.T.T = 'run-previous'
|
||||||
|
|
|
@ -40,3 +40,4 @@ function! ToggleQuickfix(size, ...)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
nmap <silent> <F12> :call ToggleQuickfix(0)<CR>
|
nmap <silent> <F12> :call ToggleQuickfix(0)<CR>
|
||||||
|
nmap <silent> <Leader>q :call ToggleQuickfix(0)<CR>
|
||||||
|
|
Loading…
Reference in a new issue