hecal3 / vim-leader-guide

295 stars 21 forks source link

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

Open jhchabran opened 7 years ago

jhchabran commented 7 years ago

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)

hecal3 commented 7 years ago

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.

robinvd commented 7 years ago

Something like this wont work for me:

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

is there a way to still document it?

z0rc commented 6 years ago

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.