docs(lua): lua-guide: <Nop> is for rhs of vim.keymap.set(), not lhs (#21814)

This commit is contained in:
Naru 2023-01-15 20:08:03 +09:00 committed by GitHub
parent 6134c1e8a3
commit 6f0234a5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -406,9 +406,9 @@ mandatory arguments:
prefix for which the mapping will take effect. The prefixes are the ones
listed in |:map-modes|, or "!" for |:map!|, or empty string for |:map|.
• {lhs} is a string with the key sequences that should trigger the mapping.
An empty string is equivalent to |<Nop>|, which disables a key.
• {rhs} is either a string with a Vim command or a Lua function that should
be executed when the {lhs} is entered.
An empty string is equivalent to |<Nop>|, which disables a key.
Examples:
>lua