From 425d7e5f1b67d2c1748b4b30091d88d1446aecc7 Mon Sep 17 00:00:00 2001 From: Clément Delafargue Date: Mon, 16 Jan 2023 11:13:03 +0100 Subject: doc: add a note about nested bindings in key remapping It was not clear (to me) that minor modes were configurable in the keymap configuration. --- book/src/remapping.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'book') diff --git a/book/src/remapping.md b/book/src/remapping.md index e89c6611..2eac8846 100644 --- a/book/src/remapping.md +++ b/book/src/remapping.md @@ -25,6 +25,9 @@ j = { k = "normal_mode" } # Maps `jk` to exit insert mode ``` > NOTE: Typable commands can also be remapped, remember to keep the `:` prefix to indicate it's a typable command. +> NOTE: Bindings can be nested, to create (or edit) minor modes: `g = { a = "code_action"}` adds a new entry to +> the `goto` mode. + Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes `C-`, `S-` and `A-`. Special keys are encoded as follows: -- cgit v1.2.3-70-g09d2