Skip to content

Instantly share code, notes, and snippets.

@stepankuzmin
Last active February 19, 2025 10:01
Show Gist options
  • Save stepankuzmin/57a2669005a348ea2177fc291d7b8f4a to your computer and use it in GitHub Desktop.
Save stepankuzmin/57a2669005a348ea2177fc291d7b8f4a to your computer and use it in GitHub Desktop.
Zed editor configuration
// 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": "Pane",
"bindings": {
"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]
}
},
{
"bindings": {
"cmd-\\": "workspace::ToggleRightDock",
"cmd-r": "outline::Toggle",
"cmd-shift-l": "editor::SplitSelectionIntoLines",
"cmd-alt-left": "workspace::ActivatePaneLeft",
"cmd-alt-right": "workspace::ActivatePaneRight",
"cmd-alt-up": "workspace::ActivatePaneUp",
"cmd-alt-down": "workspace::ActivatePaneDown"
}
}
]
// 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 the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"assistant": {
"default_model": {
"provider": "anthropic",
"model": "claude-3-5-sonnet-latest"
},
"version": "2"
},
"features": {
"copilot": true,
"edit_prediction_provider": "zed"
},
"languages": {
"TypeScript": {
"prettier": { "allowed": false },
"language_servers": ["typescript-language-server", "!vtsls"]
}
},
"theme": {
"mode": "system",
"dark": "Github Dark",
"light": "Github Light"
},
"buffer_font_size": 16,
"double_click_in_multibuffer": "open",
"format_on_save": "off",
"show_completion_documentation": false,
"show_completions_on_input": true,
"show_whitespaces": "boundary",
"tab_size": 4,
"ui_font_family": "Fira Code",
"ui_font_size": 16,
"use_autoclose": false,
"telemetry": {
"enabled": false,
"anonymous": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment