aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2022-08-01 15:35:08 +0200
committerGitHub <noreply@github.com>2022-08-01 21:35:08 +0800
commitdb6e93c48df551e2906c9e0f4472f9e54cea3dd9 (patch)
treea62b94332e6f23a49adce724759a4c23edf7cf03 /src/nvim/api/vim.c
parent9f5d5aa3da30aab40bbb38fddfc70257444d50a8 (diff)
downloadrneovim-db6e93c48df551e2906c9e0f4472f9e54cea3dd9.tar.gz
rneovim-db6e93c48df551e2906c9e0f4472f9e54cea3dd9.tar.bz2
rneovim-db6e93c48df551e2906c9e0f4472f9e54cea3dd9.zip
feat(api): add replace_keycodes to nvim_set_keymap (#19598)
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c3
1 files changed, 2 insertions, 1 deletions
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)