docs(lua): adds links to related keymap functions to keymap.set (#24337)

Might help with discovery, given that there is no `keymap.get()`
This commit is contained in:
Mathias Fußenegger
2023-07-13 14:43:36 +02:00
committed by GitHub
parent 516b173780
commit a3f4598226
2 changed files with 6 additions and 0 deletions

View File

@@ -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' } },