From b3822b58a7692b21555906645fa1f61e71af6b9b Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Tue, 24 Dec 2024 11:39:37 -0500 Subject: [PATCH] docs: separate cmdline keymaps --- docs/configuration/keymap.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/configuration/keymap.md b/docs/configuration/keymap.md index e561135e..53b6d7e2 100644 --- a/docs/configuration/keymap.md +++ b/docs/configuration/keymap.md @@ -30,6 +30,9 @@ keymap = { end, 'select_next' }, + + -- optionally, separate cmdline keymaps + -- cmdline = {} } ``` @@ -55,6 +58,21 @@ keymap = { - `snippet_backward`: Jumps to the previous snippet placeholder - `fallback`: Runs the next non-blink keymap, or runs the built-in neovim binding +## Cmdline + +You may set a separate keymap for cmdline by defining `keymap.cmdline`, with an identical structure to `keymap`. + +```lua +keymap = { + preset = 'default', + ... + cmdline = { + preset = 'enter', + ... + } +} +``` + ## Presets Set the preset to `none` to disable the presets