vim-leader-guide icon indicating copy to clipboard operation
vim-leader-guide copied to clipboard

How do I display the guide for bindings such as <leader><leader>c ?

Open jhchabran opened this issue 8 years ago • 3 comments

Thanks for writing vim-leader-guide, it's gonna be truly helping to onboard new vim users in my team :)

I have in my configuration a couple of bindings that are assigned to <leader><leader>c for example.

Presently, those bindings are showing and SPC or <leader> isn't displayed in the list of first level leader commands (ie, next to the entries for <leader>t for example)

jhchabran avatar Oct 07 '16 07:10 jhchabran

Hey,

sorry for the delay. Could you please upload a sample configuration.

For me <leader> is displayed correctly. Not as leader, but as <Space>, or rather a whitespace. The empty group at the top left. (No group name defined): space_binding

The configuration in my example is a simple:

noremap <leader><leader>c :echo "test"<cr>

Do you have <leader><leader> set to something as well? If so, there might be some issue with the flattening procedure.

hecal3 avatar Nov 06 '16 14:11 hecal3

Something like this wont work for me:

let g:lmap.<leader>  = [ 'Denite command', 'Enter command' ]

is there a way to still document it?

robinvd avatar May 11 '17 17:05 robinvd

Having same issue here. I'm using default leader \ and default keybindings from vim-easymotion which is <leader><leader>. It shows up as [\] <Plug>(easymotion-prefix) in leader-guide window. What I'm trying to do is to add name description here via:

let g:lmap['\']={'name': 'Easymotion'}

But it produces:

 [\] <Plug>(easymotion-prefix)
 [\m] Easymotion 

in leader-guide window. I tried various escaping patterns with single and double quotes, single or double slashes, <leader>. None of it worked as expected.

z0rc avatar Sep 20 '17 12:09 z0rc