Closed adoyle-h closed 1 year ago
button already supports lua functions https://neovim.io/doc/user/api.html#nvim_set_keymap()
When called from Lua, also accepts a "callback" key that takes a Lua function to call when the mapping is executed
the lua api is a bit more idiomatic but there's really no reason to break compatibility
I changed it back to nvim_buf_set_keymap
. Please review it again.
@goolord Could you please review this PR?
PR looks fine, i'll test this branch soon & merge i suppose
It get fixed in latest code.
nvim_replace_termcodes(keybind) is redundant