diff --git a/config/zed/keymap.json b/config/zed/keymap.json new file mode 100644 index 0000000..a323c97 --- /dev/null +++ b/config/zed/keymap.json @@ -0,0 +1,66 @@ +// 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. +[ + { + // (All contexts) + "bindings": { + "cmd-shift-g": "git_panel::ToggleFocus", + "cmd->": "project_panel::ToggleHideHidden", + "cmd-1": ["pane::ActivateItem", 0], + "cmd-2": ["pane::ActivateItem", 1], + "cmd-3": ["pane::ActivateItem", 2], + "cmd-4": ["pane::ActivateItem", 3], + "cmd-5": ["pane::ActivateItem", 4], + "cmd-6": ["pane::ActivateItem", 5], + "cmd-7": ["pane::ActivateItem", 6], + "cmd-8": ["pane::ActivateItem", 7], + "cmd-9": ["pane::ActivateItem", 8], + }, + }, + { + "context": "Editor && vim_mode == insert", + "bindings": { + // "j k": "vim::NormalBefore" + }, + }, + { + "context": "Editor", + "bindings": { + "cmd-l": null, + }, + }, + { + "context": "((FileFinder || FileFinder > Picker > Editor) || FileFinder > Picker > menu)", + "bindings": { + "cmd-l": null, + }, + }, + { + "bindings": { + "cmd-l": "workspace::ToggleRightDock", + }, + }, + { + "context": "ContextEditor > Editor", + "bindings": { + "cmd-shift-g": null, + }, + }, + { + "context": "Pane", + "bindings": { + "cmd-shift-g": null, + }, + }, + { + "context": "Workspace", + "bindings": { + "cmd-w": null + } + } +] diff --git a/config/zed/settings.json b/config/zed/settings.json new file mode 100644 index 0000000..12afe99 --- /dev/null +++ b/config/zed/settings.json @@ -0,0 +1,70 @@ +// Zed settings +// +// For information on how to configure Zed, see the Zed +// documentation: https://zed.dev/docs/configuring-zed +// +// To see all of Zed's default settings without changing your +// custom settings, run `zed: open default settings` from the +// command palette (cmd-shift-p / ctrl-shift-p) +{ + "project_panel": { + "hide_hidden": false, + }, + "features": { + "edit_prediction_provider": "copilot", + }, + "agent_ui_font_size": 15.0, + "toolbar": { + "breadcrumbs": true, + "code_actions": false, + }, + "git_panel": { + "tree_view": true, + }, + "ui_font_family": ".SystemUIFont", + "icon_theme": "Material Icon Theme", + "agent_servers": { + "opencode": { + "type": "registry", + }, + }, + "buffer_font_family": "CaskaydiaCove Nerd Font", + "session": { + "trust_all_worktrees": true, + }, + "vim_mode": true, + "terminal": { + "font_family": "MesloLGS NF", + }, + "base_keymap": "VSCode", + "ui_font_size": 14.0, + "buffer_font_size": 12.0, + "file_types": { + "Jinja2": ["*.j2"], + "YAML": ["*.yml.template", "*.yaml.template"], + }, + "theme": { + "mode": "system", + "light": "Ayu Light", + "dark": "VSCode Dark Modern", + }, + "theme_overrides": { + "VSCode Dark Modern": { + "editor.background": "#121212", + "editor.active_line.background": "#1f1f1f", + "tab_bar.background": "#121212", + "tab.active_background": "#262626", + "terminal.background": "#141414", + "panel.background": "#161616", + "text": "#fff", + "text.muted": "#ddd", + "toolbar.background": "#171717", + "editor.gutter.background": "#171717", + "border": "#444", + "version_control.deleted": "#f11", + "version_control.added": "#2e1", + "version_control.conflict": "#e1f", + "version_control.modified": "#08f", + }, + }, +}