Closed RobertAudi closed 2 years ago
https://neovim.io/doc/user/api.html#nvim_set_keymap()
{opts} Optional parameters map: keys are |:map-arguments|, values are booleans (default false). Accepts all |:map-arguments| as keys excluding |
| but including |noremap| and "desc". Unknown key is an error. "desc" can be used to give a description to the mapping. When called from Lua, also accepts a "callback" key that takes a Lua function to call when the mapping is executed.
This allows to use a function as the right hand side of the keymap