diff options
Diffstat (limited to 'zed')
| -rw-r--r-- | zed/keymap.json | 46 | ||||
| -rw-r--r-- | zed/settings.json | 24 |
2 files changed, 70 insertions, 0 deletions
diff --git a/zed/keymap.json b/zed/keymap.json new file mode 100644 index 0000000..801a55d --- /dev/null +++ b/zed/keymap.json @@ -0,0 +1,46 @@ +// 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": "Workspace", + "bindings": { + "\\ f f": "file_finder::Toggle", + "\\ f g": "workspace::NewSearch", + "\\ f b": "tab_switcher::Toggle", + "\\ f e": "project_panel::ToggleFocus", + }, + }, + { + "context": "Editor && vim_mode == normal", + "bindings": { + "\\ d": "editor::Delete", + + "g d": "editor::GoToDefinition", + "g D": "editor::GoToDeclaration", + "g r": "editor::FindAllReferences", + "g i": "editor::GoToImplementation", + + "k": "editor::Hover", + "ctrl-k": "editor::ShowSignatureHelp", + + "\\ c a": "editor::ToggleCodeActions", + "\\ r n": "editor::Rename", + + "\\ f m": "editor::Format", + + "\\ w": "workspace::Save", + }, + }, + { + "context": "Editor && vim_mode == visual", + "bindings": { + "J": "editor::MoveLineDown", + "K": "editor::MoveLineUp", + }, + }, +] diff --git a/zed/settings.json b/zed/settings.json new file mode 100644 index 0000000..8257fa9 --- /dev/null +++ b/zed/settings.json @@ -0,0 +1,24 @@ +{ + "show_edit_predictions": false, + "icon_theme": "Zed (Default)", + "vim_mode": true, + + "ui_font_size": 16, + "buffer_font_size": 15, + + "theme": { + "mode": "dark", + "light": "Ayu Light", + "dark": "Ayu Dark", + }, + + "relative_line_numbers": "enabled", + "cursor_blink": true, + + "wrap_guides": [100], + + "tab_size": 2, + "hard_tabs": false, + + "vertical_scroll_margin": 10, +} |