aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-04-01 00:48:46 +0200
committerGitHub <noreply@github.com>2022-04-01 00:48:46 +0200
commitdc48330b9d51bffb314583bbe4073dfa1083d9a5 (patch)
tree8e0c6e76c602a5f6ead57682c4ecca35e92f81c7 /runtime/doc
parent80d4d6b486c62d750b9a08ed5ed888d9a5d3ac48 (diff)
parent58140a94283b1c6e45099c89e66a0c94e9d90931 (diff)
downloadrneovim-dc48330b9d51bffb314583bbe4073dfa1083d9a5.tar.gz
rneovim-dc48330b9d51bffb314583bbe4073dfa1083d9a5.tar.bz2
rneovim-dc48330b9d51bffb314583bbe4073dfa1083d9a5.zip
Merge pull request #17842 from lewis6991/keymap
feat(keymap): return nil from an expr keymap
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 21f44ce02e..d13e883c28 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -2023,7 +2023,9 @@ set({mode}, {lhs}, {rhs}, {opts}) *vim.keymap.set()*
create mapping on multiple modes.
{lhs} string Left-hand side |{lhs}| of the mapping.
{rhs} string|function Right-hand side |{rhs}| of the
- mapping. Can also be a Lua function.
+ mapping. Can also be a Lua function. If a Lua
+ function and `opts.expr == true`, returning `nil`
+ or `false` is equivalent to an empty string.
{opts} table A table of |:map-arguments| such as
"silent". In addition to the options listed in
|nvim_set_keymap()|, this table also accepts the