Skip to content

Commit

Permalink
docs: separate cmdline keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 24, 2024
1 parent 369f0dd commit b3822b5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/configuration/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ keymap = {
end,
'select_next'
},

-- optionally, separate cmdline keymaps
-- cmdline = {}
}
```

Expand All @@ -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
Expand Down

0 comments on commit b3822b5

Please sign in to comment.