Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Last active May 15, 2025 18:48
Show Gist options
  • Save pythoninthegrass/e6b12564f8534d2d6e28c2a0eba6b033 to your computer and use it in GitHub Desktop.
Save pythoninthegrass/e6b12564f8534d2d6e28c2a0eba6b033 to your computer and use it in GitHub Desktop.
zed config
// 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.
[
// Standard bindings
{
"bindings": {
// windows/linux
// "ctrl-shift-o": "workspace::Open"
// macos
"cmd-shift-o": "workspace::Open"
}
},
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
},
{
"context": "Editor && mode == full",
"bindings": {
"cmd-i": "assistant::InlineAssist"
}
}
]
{
"ssh_connections": [
{
"host": "nwc-dev-5-1",
"username": "ubuntu",
"projects": [
{
"paths": [
"~/git"
]
}
],
"nickname": "dev"
}
],
"icon_theme": "Material Icon Theme",
"base_keymap": "Atom",
"buffer_font_family": "Hack Nerd Font Mono",
"buffer_font_size": 13,
"file_types": {
"Dockerfile": [
"Dockerfile*"
]
},
"selection_highlight": false,
"multi_cursor_modifier": "cmd_or_ctrl",
"format_on_save": "off",
"remove_trailing_whitespace_on_save": true,
"preferred_line_length": 120,
"soft_wrap": "none",
"tab_size": 4,
"terminal": {
"font_family": "Hack Nerd Font Mono",
"font_size": 13,
"blinking": "on",
"copy_on_select": true
},
"theme": "Tomorrow Night Blue",
"ui_font_family": "Hack Nerd Font Mono",
"ui_font_size": 16,
"vim_mode": false,
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
},
"languages": {
"JSON": {
"tab_size": 2
},
"Python": {
"tab_size": 4,
"format_on_save": "on",
"language_servers": [
"ruff"
],
"formatter": [
{
"language_server": {
"name": "ruff"
}
}
]
}
},
"lsp": {
"biome": {
"settings": {
"config_path": "$HOME/.config/biome.jsonc"
}
},
"ruff": {
"python": {
"pythonPath": ".venv/bin/python"
}
}
},
"agent": {
"default_model": {
"provider": "anthropic",
"model": "claude-3-7-sonnet-thinking-latest"
},
"dock": "right",
"default_width": 320,
"version": "2"
},
"edit_predictions": {
"mode": "subtle",
"copilot": {
"proxy": null,
"proxy_no_verify": null
},
"enabled_in_text_threads": false
},
"language_models": {
"anthropic": {
"available_models": [
{
"name": "claude-3-7-sonnet",
"display_name": "claude-3-7-sonnet-latest",
"max_tokens": 200000,
"mode": {
"type": "thinking",
"budget_tokens": 4096
},
"cache_configuration": {
"max_cache_anchors": 10,
"min_total_token": 10000,
"should_speculate": false
}
}
],
"version": "1"
}
}
}
@pythoninthegrass
Copy link
Author

# backup vanilla configs
cd ~/.config/zed
mv settings.json settings.json.bak
mv keymap.json keymap.json.bak

# clone gist
git clone [email protected]:e6b12564f8534d2d6e28c2a0eba6b033.git ~/git/zed_config

# symlink configs
cd ~/git/zed_config
ln -s $(pwd)/settings.json ~/.config/zed/settings.json
ln -s $(pwd)/keymap.json ~/.config/zed/keymap.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment