aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/keymap.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-02 11:13:22 +0800
committerGitHub <noreply@github.com>2022-08-02 11:13:22 +0800
commit0a049c322fda5f2bb124429086c2713ff99c7142 (patch)
treecda051948c3dbaa29d7cac37d921829eb86ad380 /runtime/lua/vim/keymap.lua
parent9c91d5c61382639c06ca59e6cc2bfda6ba6abf18 (diff)
downloadrneovim-0a049c322fda5f2bb124429086c2713ff99c7142.tar.gz
rneovim-0a049c322fda5f2bb124429086c2713ff99c7142.tar.bz2
rneovim-0a049c322fda5f2bb124429086c2713ff99c7142.zip
test: improve mapping tests and docs (#19619)
Diffstat (limited to 'runtime/lua/vim/keymap.lua')
-rw-r--r--runtime/lua/vim/keymap.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/lua/vim/keymap.lua b/runtime/lua/vim/keymap.lua
index 3592855606..0549f63180 100644
--- a/runtime/lua/vim/keymap.lua
+++ b/runtime/lua/vim/keymap.lua
@@ -31,12 +31,10 @@ local keymap = {}
--- vim.keymap.set('n', 'asdf', function() return require('jkl').my_fun() end)
--- </pre>
---
----@param mode string|table Same mode short names as |nvim_set_keymap()|.
+---@param mode string|table Same mode short names as |nvim_set_keymap()|.
--- Can also be list of modes to create mapping on multiple modes.
----@param lhs string Left-hand side |{lhs}| of the mapping.
+---@param lhs string Left-hand side |{lhs}| of the mapping.
---@param rhs string|function Right-hand side |{rhs}| of the mapping. Can also be a Lua function.
---- If a Lua function and `opts.expr == true`, returning `nil` is
---- equivalent to an empty string.
--
---@param 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 following keys: