liuchengxu / vim-which-key

:tulip: Vim plugin that shows keybindings in popup
https://liuchengxu.github.io/vim-which-key/
MIT License
1.93k stars 65 forks source link

do not parse mappings with lua implementations #233

Closed burnettk closed 1 year ago

burnettk commented 1 year ago

i think this is a reasonable compromise, since 1) i think this code is just trying to get the actual mapping so it can show something in the which key menu if the user hasn't supplied a description, 2) there isn't anything useful to display in the case of a Lua implementation, and 3) if we don't ignore these, i'm getting errors like the following in neovim 0.9.0:

Error detected while processing function which_key#start[26]..<SNR>35_cache_key[4]..which_key#mappings#parse:
line   25:
E716: Key not present in Dictionary: "rhs])"
E116: Invalid arguments for function call
line   34:
E716: Key not present in Dictionary: "rhs, '<SID>', '<SNR>'.mapd['sid'].'_', 'g')"
E116: Invalid arguments for function substitute

thank you for the fantastic plugin. 🙇

liuchengxu commented 1 year ago

Make sense to me, thank you!