commit a3f4598226c4d01e4fbc41181a1ad21793862fe3
parent 516b173780e39de3ce1e4525f0a8f0ff250c992b
Author: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Date: Thu, 13 Jul 2023 14:43:36 +0200
docs(lua): adds links to related keymap functions to keymap.set (#24337)
Might help with discovery, given that there is no `keymap.get()`
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
@@ -2625,6 +2625,9 @@ set({mode}, {lhs}, {rhs}, {opts}) *vim.keymap.set()*
See also: ~
• |nvim_set_keymap()|
+ • |maparg()|
+ • |mapcheck()|
+ • |mapset()|
==============================================================================
diff --git a/runtime/lua/vim/keymap.lua b/runtime/lua/vim/keymap.lua
@@ -32,6 +32,9 @@ local keymap = {}
--- - "remap": (boolean) Make the mapping recursive. Inverse of "noremap".
--- Defaults to `false`.
---@see |nvim_set_keymap()|
+---@see |maparg()|
+---@see |mapcheck()|
+---@see |mapset()|
function keymap.set(mode, lhs, rhs, opts)
vim.validate({
mode = { mode, { 's', 't' } },