summaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorClément Delafargue2023-01-16 10:13:03 +0000
committerMichael Davis2023-01-16 16:02:15 +0000
commit425d7e5f1b67d2c1748b4b30091d88d1446aecc7 (patch)
treed19570cc0063b082c26da7763b4918d72d5cf28c /book/src
parent6f6334f3c65f66f72867e6500b3c4a76ed017dfe (diff)
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.
Diffstat (limited to 'book/src')
-rw-r--r--book/src/remapping.md3
1 files changed, 3 insertions, 0 deletions
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: