diff options
Diffstat (limited to 'src/nvim/api')
-rw-r--r-- | src/nvim/api/keysets.lua | 1 | ||||
-rw-r--r-- | src/nvim/api/vim.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/api/keysets.lua b/src/nvim/api/keysets.lua index 21319fb7a6..4f4ac40ce9 100644 --- a/src/nvim/api/keysets.lua +++ b/src/nvim/api/keysets.lua @@ -39,6 +39,7 @@ return { "unique"; "callback"; "desc"; + "replace_keycodes"; }; get_commands = { "builtin"; diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 256482fb38..dc57841b96 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1447,7 +1447,8 @@ ArrayOf(Dictionary) nvim_get_keymap(uint64_t channel_id, String mode) /// 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. +/// mapping is executed. "replace_keycodes" can be used with "expr" +/// to replace keycodes, see |nvim_replace_termcodes()|. /// @param[out] err Error details, if any. void nvim_set_keymap(uint64_t channel_id, String mode, String lhs, String rhs, Dict(keymap) *opts, Error *err) |