aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-12-31 20:10:35 +0100
committerGitHub <noreply@github.com>2021-12-31 20:10:35 +0100
commitb218d02c442ebacba1fdef0cca9e40315a46aedd (patch)
tree0780d3d7eed40aff1e94347922dc7d5b0ca23107 /src/nvim/api/buffer.c
parent5c1b8b77c59d06f80368784f0eac92d6a331a313 (diff)
parentb411f436d3e2e8a902dbf879d00fc5ed0fc436d3 (diff)
downloadrneovim-b218d02c442ebacba1fdef0cca9e40315a46aedd.tar.gz
rneovim-b218d02c442ebacba1fdef0cca9e40315a46aedd.tar.bz2
rneovim-b218d02c442ebacba1fdef0cca9e40315a46aedd.zip
Merge pull request #16594 from shadmansaleh/feat/api/lua_keymaps
feat(api): add support for lua function & description in keymap
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r--src/nvim/api/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index bacb991c4b..2d5403d4b8 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -835,7 +835,7 @@ Integer nvim_buf_get_changedtick(Buffer buffer, Error *err)
/// @param[out] err Error details, if any
/// @returns Array of maparg()-like dictionaries describing mappings.
/// The "buffer" key holds the associated buffer handle.
-ArrayOf(Dictionary) nvim_buf_get_keymap(Buffer buffer, String mode, Error *err)
+ArrayOf(Dictionary) nvim_buf_get_keymap(uint64_t channel_id, Buffer buffer, String mode, Error *err)
FUNC_API_SINCE(3)
{
buf_T *buf = find_buffer_by_handle(buffer, err);
@@ -844,7 +844,7 @@ ArrayOf(Dictionary) nvim_buf_get_keymap(Buffer buffer, String mode, Error *err)
return (Array)ARRAY_DICT_INIT;
}
- return keymap_array(mode, buf);
+ return keymap_array(mode, buf, channel_id == LUA_INTERNAL_CALL);
}
/// Sets a buffer-local |mapping| for the given mode.