aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-16 16:58:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-16 16:58:32 +0800
commitcc81a8253be032aa12f05730e8a2f1b5d94fd08c (patch)
treeb911ba8941773bbeecb1a85ebd17499e3a314024 /runtime
parent9a74c2b04ac8f54a17925a437b5a2f03b18f6281 (diff)
downloadrneovim-cc81a8253be032aa12f05730e8a2f1b5d94fd08c.tar.gz
rneovim-cc81a8253be032aa12f05730e8a2f1b5d94fd08c.tar.bz2
rneovim-cc81a8253be032aa12f05730e8a2f1b5d94fd08c.zip
docs: minor changes related to mapping description
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt2
-rw-r--r--runtime/doc/map.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 7a5aeee603..1e1534c31f 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1584,7 +1584,7 @@ nvim_set_keymap({mode}, {lhs}, {rhs}, {*opts}) *nvim_set_keymap()*
{rhs} Right-hand-side |{rhs}| of the mapping.
{opts} Optional parameters map. Accepts all
|:map-arguments| as keys excluding |<buffer>| but
- including |noremap| and "desc". |desc| can be used
+ including |noremap| and "desc". "desc" can be used
to give a description to keymap. When called from
Lua, also accepts a "callback" key that takes a
Lua function to call when the mapping is executed.
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index 89df42600c..358e944261 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -502,7 +502,9 @@ Note: When using mappings for Visual mode, you can use the "'<" mark, which
is the start of the last selected Visual area in the current buffer |'<|.
The |:filter| command can be used to select what mappings to list. The
-pattern is matched against the {lhs}, {rhs} and {desc} in the raw form.
+pattern is matched against the {lhs} and {rhs} in the raw form. If a
+description was added using |nvim_set_keymap()| or |nvim_buf_set_keymap()|
+then the pattern is also matched against it.
*:map-verbose*
When 'verbose' is non-zero, listing a key map will also display where it was