aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/keymap.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-02-05 14:43:04 +0100
committerGitHub <noreply@github.com>2026-02-05 08:43:04 -0500
commit13a9cdc6b4d10d4e840c1b940d061a242adbef21 (patch)
tree26374bf0e640c42b11089eb6728e86cc0fd4b418 /runtime/lua/vim/keymap.lua
parent6f27eb1591d18e6632845e088143270489155464 (diff)
downloadrneovim-13a9cdc6b4d10d4e840c1b940d061a242adbef21.tar.gz
rneovim-13a9cdc6b4d10d4e840c1b940d061a242adbef21.tar.bz2
rneovim-13a9cdc6b4d10d4e840c1b940d061a242adbef21.zip
docs(lua): vim.keymap.set takes no `noremap` #37723
Problem: Unlike `nvim_keymap_set`, `vim.keymap.set` uses the non-negated `remap` instead of `:set`'s `noremap`, but the documentation for this got lost sometime before Nvim 0.10. Solution: Restore the lost documentation and make it more explicit.
Diffstat (limited to 'runtime/lua/vim/keymap.lua')
-rw-r--r--runtime/lua/vim/keymap.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/keymap.lua b/runtime/lua/vim/keymap.lua
index 9273ebf2f4..8464f68a37 100644
--- a/runtime/lua/vim/keymap.lua
+++ b/runtime/lua/vim/keymap.lua
@@ -3,6 +3,7 @@ local keymap = {}
--- Table of |:map-arguments|.
--- Same as |nvim_set_keymap()| {opts}, except:
--- - {replace_keycodes} defaults to `true` if "expr" is `true`.
+--- - {noremap} is not supported; use {remap} instead (see below).
---
--- Also accepts:
--- @class vim.keymap.set.Opts : vim.api.keyset.keymap