mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs(nvim_set_keymap): specify that optional arguments defaults to false (#18177)
Closes: https://github.com/neovim/neovim/issues/16919
This commit is contained in:
parent
bc45b5be1c
commit
0a66c4a72a
@ -1615,13 +1615,15 @@ nvim_set_keymap({mode}, {lhs}, {rhs}, {*opts}) *nvim_set_keymap()*
|
|||||||
for |:map|.
|
for |:map|.
|
||||||
{lhs} Left-hand-side |{lhs}| of the mapping.
|
{lhs} Left-hand-side |{lhs}| of the mapping.
|
||||||
{rhs} Right-hand-side |{rhs}| of the mapping.
|
{rhs} Right-hand-side |{rhs}| of the mapping.
|
||||||
{opts} Optional parameters map. Accepts all
|
{opts} Optional parameters map: keys are
|
||||||
|:map-arguments| as keys excluding |<buffer>| but
|
|:map-arguments|, values are booleans (default
|
||||||
including |noremap| and "desc". "desc" can be used
|
false). Accepts all |:map-arguments| as keys
|
||||||
to give a description to keymap. When called from
|
excluding |<buffer>| but including |noremap| and
|
||||||
Lua, also accepts a "callback" key that takes a
|
"desc". Unknown key is an error. "desc" can be
|
||||||
Lua function to call when the mapping is executed.
|
used to give a description to the mapping. When
|
||||||
Values are Booleans. Unknown key is an error.
|
called from Lua, also accepts a "callback" key
|
||||||
|
that takes a Lua function to call when the mapping
|
||||||
|
is executed.
|
||||||
|
|
||||||
nvim_set_option({name}, {value}) *nvim_set_option()*
|
nvim_set_option({name}, {value}) *nvim_set_option()*
|
||||||
Sets the global value of an option.
|
Sets the global value of an option.
|
||||||
|
@ -1601,12 +1601,13 @@ ArrayOf(Dictionary) nvim_get_keymap(uint64_t channel_id, String mode)
|
|||||||
/// or "!" for |:map!|, or empty string for |:map|.
|
/// or "!" for |:map!|, or empty string for |:map|.
|
||||||
/// @param lhs Left-hand-side |{lhs}| of the mapping.
|
/// @param lhs Left-hand-side |{lhs}| of the mapping.
|
||||||
/// @param rhs Right-hand-side |{rhs}| of the mapping.
|
/// @param rhs Right-hand-side |{rhs}| of the mapping.
|
||||||
/// @param opts Optional parameters map. Accepts all |:map-arguments|
|
/// @param opts Optional parameters map: keys are |:map-arguments|, values
|
||||||
/// as keys excluding |<buffer>| but including |noremap| and "desc".
|
/// are booleans (default false). Accepts all |:map-arguments| as
|
||||||
/// "desc" can be used to give a description to keymap.
|
/// keys excluding |<buffer>| but including |noremap| and "desc".
|
||||||
/// When called from Lua, also accepts a "callback" key that takes
|
/// Unknown key is an error. "desc" can be used to give a
|
||||||
/// a Lua function to call when the mapping is executed.
|
/// description to the mapping. When called from Lua, also accepts a
|
||||||
/// Values are Booleans. Unknown key is an error.
|
/// "callback" key that takes a Lua function to call when the
|
||||||
|
/// mapping is executed.
|
||||||
/// @param[out] err Error details, if any.
|
/// @param[out] err Error details, if any.
|
||||||
void nvim_set_keymap(uint64_t channel_id, String mode, String lhs, String rhs, Dict(keymap) *opts,
|
void nvim_set_keymap(uint64_t channel_id, String mode, String lhs, String rhs, Dict(keymap) *opts,
|
||||||
Error *err)
|
Error *err)
|
||||||
|
Loading…
Reference in New Issue
Block a user