diff options
Diffstat (limited to 'dot_config/zed/keymap.json')
| -rw-r--r-- | dot_config/zed/keymap.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dot_config/zed/keymap.json b/dot_config/zed/keymap.json new file mode 100644 index 0000000..069aff5 --- /dev/null +++ b/dot_config/zed/keymap.json @@ -0,0 +1,38 @@ +// Zed keymap +// +// For information on binding keys, see the Zed +// documentation: https://zed.dev/docs/key-bindings +// +// To see the default key bindings run `zed: open default keymap` +// from the command palette. +[ + { + "context": "Editor && (showing_code_actions || showing_completions)", + "bindings": { + "ctrl-p": "editor::ContextMenuPrevious", + "up": "editor::ContextMenuPrevious", + "ctrl-n": "editor::ContextMenuNext", + "down": "editor::ContextMenuNext", + "pageup": "editor::ContextMenuFirst", + "pagedown": "editor::ContextMenuLast" + } + }, + { + "context": "Editor && showing_completions", + "bindings": { + "ctrl-y": "editor::ConfirmCompletion" + } + }, + { + "context": "Editor && edit_prediction", + "bindings": { + "ctrl-y": "editor::AcceptEditPrediction" + } + }, + { + "context": "Editor && showing_code_actions", + "bindings": { + "ctrl-y": "editor::ConfirmCodeAction" + } + } +] |