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.
commit425d7e5f1b67d2c1748b4b30091d88d1446aecc7
authorClément Delafargue <clement@delafargue.name>
dateMon 16 Jan 2023, 11:13 (4 years ago)
parent6f6334f
book/src/remapping.md+3
@@ -25,6 +25,9 @@ j = { k = "normal_mode" } # Maps `jk` to exit insert mode
2525```
2626> NOTE: Typable commands can also be remapped, remember to keep the `:` prefix to indicate it's a typable command.
2727
28+> NOTE: Bindings can be nested, to create (or edit) minor modes: `g = { a = "code_action"}` adds a new entry to
29+> the `goto` mode.
30+
2831Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes
2932`C-`, `S-` and `A-`. Special keys are encoded as follows:
3033