You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I currently find it very inconvenient that a keymap can only be set by doing the following
Having to write the entire function in the value of the key.
Because if you try the following and replace the function call with a string related to a command the description in the help popup becomes just the name of the command. Ex: 'toggle_filesystem'
I think it would make sense to be able to the same if you have a command written and you are calling that command you could still pass a table similar to what I have above
......mappings= {
["e"] = { 'toggle_filesystem' , desc="Toggle Filesystem" } -- Popup should show 'Toggle Filesystem' instead of 'toggle_filesystem'
}
Describe alternatives you've considered.
I've read the docs regarding mappings and commands. I have already tried setting a description like I did above in the proposed solution, but the only time my desc key took effect was when I write the function instead of calling a command.
Did you check the docs?
Is your feature request related to a problem? Please describe.
I currently find it very inconvenient that a keymap can only be set by doing the following
'toggle_filesystem'
Describe the solution you'd like.
I think it would make sense to be able to the same if you have a command written and you are calling that command you could still pass a table similar to what I have above
Describe alternatives you've considered.
I've read the docs regarding mappings and commands. I have already tried setting a description like I did above in the proposed solution, but the only time my
desc
key took effect was when I write the function instead of calling a command.Additional Context
Current
opts
set in my lazyvimThe text was updated successfully, but these errors were encountered: