From 86366002e29ccac58bf99ac24ae16cbf77d2c093 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 6 Nov 2020 01:54:11 -0500 Subject: updates including vimspector --- keys/which-key.vim | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'keys/which-key.vim') diff --git a/keys/which-key.vim b/keys/which-key.vim index 38d972a6..5dcedce6 100644 --- a/keys/which-key.vim +++ b/keys/which-key.vim @@ -2,6 +2,11 @@ let @s = 'veS"' +" Timeout +let g:which_key_timeout = 100 + +let g:which_key_display_names = {'': '↵', '': '⇆'} + " Map leader to which_key nnoremap :silent :silent WhichKey '' vnoremap :silent :silent WhichKeyVisual '' @@ -13,11 +18,16 @@ let g:which_key_sep = '→' " set timeoutlen=100 " Coc Search & refactor -nnoremap ? :CocSearch =expand("") +nnoremap ? CocSearch =expand("") let g:which_key_map['?'] = 'search word' " Not a fan of floating windows for this let g:which_key_use_floating_win = 0 +let g:which_key_max_size = 0 + +" let g:which_key_position = 'botright' +" let g:which_key_position = 'topleft' +" let g:which_key_vertical = 1 " Change the colors if you want @@ -32,7 +42,6 @@ let g:which_key_map['/'] = [ ':call Comment()' , let g:which_key_map['.'] = [ ':e $MYVIMRC' , 'open init' ] let g:which_key_map[';'] = [ ':Commands' , 'commands' ] let g:which_key_map['='] = [ '=' , 'balance windows' ] -let g:which_key_map['d'] = [ ':Bdelete' , 'delete buffer'] let g:which_key_map['e'] = [ ':CocCommand explorer --toggle --sources=file+' , 'explorer' ] let g:which_key_map['h'] = [ 's' , 'split below'] let g:which_key_map['n'] = [ ':let @/ = ""' , 'no highlight' ] @@ -92,6 +101,23 @@ let g:which_key_map.b = { \ '?' : ['Buffers' , 'fzf-buffer'], \ } +" d is for debug +let g:which_key_map.d = { + \ 'name' : '+debug' , + \ 'b' : ['VimspectorToggleBreakpoint' , 'breakpoint'], + \ 'B' : ['VimspectorToggleConditionalBreakpoint' , 'conditional breakpoint'], + \ 'c' : ['VimspectorRunToCursor' , 'run to cursor'], + \ 'd' : ['VimspectorContinue' , 'continue'], + \ 'f' : ['VimspectorAddFunctionBreakpoint' , 'function breakpoint'], + \ 'm' : [':MaximizerToggle' , 'maximize window'], + \ 'o' : ['VimspectorStepOver' , 'step over'], + \ 'O' : ['VimspectorStepOut' , 'step out'], + \ 'i' : ['VimspectorStepInto' , 'step into'], + \ 'p' : ['VimspectorPause' , 'pause'], + \ 'r' : ['VimspectorRestart' , 'restart'], + \ 's' : ['VimspectorStop' , 'stop'], + \ } + " f is for find and replace let g:which_key_map.f = { \ 'name' : '+find & replace' , @@ -263,7 +289,7 @@ let g:which_key_map.l = { \ 'name' : '+lsp' , \ '.' : [':CocConfig' , 'config'], \ ';' : ['(coc-refactor)' , 'refactor'], - \ 'a' : ['(coc-codeaction)' , 'line action'], + \ 'a' : ['(coc-codeaction)' , 'code action'], \ 'A' : ['(coc-codeaction-selected)' , 'selected action'], \ 'b' : [':CocNext' , 'next action'], \ 'B' : [':CocPrev' , 'prev action'], -- cgit v1.2.3