Re-add Zed configuration

This commit is contained in:
Max Bucknell 2025-01-29 21:56:47 -08:00
parent 4c0bda5534
commit 67cc604810
No known key found for this signature in database
6 changed files with 233 additions and 0 deletions

1
zed/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
zed.xdg.symlink/.tmp*

6
zed/extensions.list Normal file
View file

@ -0,0 +1,6 @@
- Dockerfile
- SQL
- GitHub Theme
- Make
- TOML
- GraphQL

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,67 @@
[
{
"bindings": {
"cmd-o": "file_finder::Toggle"
}
},
{
"context": "ProjectPanel && not_editing",
"bindings": {
"shift-cmd-n": "project_panel::NewDirectory",
"cmd-n": "project_panel::NewFile",
"enter": "project_panel::Rename",
"cmd-o": "project_panel::OpenPermanent"
}
},
{
"context": "Pane",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Down"],
"cmd-shift-g": "pane::RevealInProjectPanel"
}
},
{
"context": "Editor",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"cmd-enter": "repl::Run"
}
},
{
"context": "vim_mode == normal",
"bindings": {
"shift-d": ["workspace::SendKeystrokes", "d d"],
"-": ["workspace::SendKeystrokes", "d d p"],
"_": ["workspace::SendKeystrokes", "d d k P"],
"escape": "repl::ClearOutputs",
"backspace": "buffer_search::Dismiss"
}
},
{
"context": "VimControl && !menu",
"bindings": {
";": "command_palette::Toggle",
":": "vim::RepeatFind",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"]
}
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
"j k": "vim::NormalBefore",
"left": null,
"down": null,
"up": null,
"right": null
}
}
]

View file

@ -0,0 +1,71 @@
// 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": "zed.dev",
"model": "claude-3-5-sonnet-latest"
},
"version": "2"
},
"auto_update": false,
"theme": {
"dark": "mpwb dark",
"light": "mpwb light"
},
"scrollbar": {
"cursors": false,
"git_diff": false,
"search_results": false,
"selected_symbol": false
},
"git": {
"git_gutter": "hide",
"inline_blame": {
"enabled": true
}
},
"cursor_blink": false,
"vim_mode": true,
"vim": {
"use_system_clipboard": "never"
},
"relative_line_numbers": true,
"buffer_font_size": 12,
"buffer_font_family": "Input",
"buffer_font_features": {
"calt": false,
"liga": false
},
"ui_font_family": "SF Pro",
"ui_font_size": 15,
"project_panel": {
"dock": "right"
},
"languages": {
"TypeScript": {
"tab_size": 4
},
"JavaScript": {
"tab_size": 4
},
"TSX": {
"tab_size": 4
},
"Markdown": {
"tab_size": 4
},
"JSON": {
"tab_size": 4
},
"Make": {
"tab_size": 8
}
}
}

View file

@ -0,0 +1,87 @@
{
"$schema": "https://zed.dev/schema/themes/v0.2.0.json",
"name": "mpwb",
"author": "Max Bucknell",
"themes": [
{
"name": "mpwb dark",
"appearance": "dark",
"style": {
"created": "#20a951ff",
"deleted": "#ad1c22ff",
"modified": "#2059afff",
"editor.subheader.background": "#ab1717ff",
"panel.background": "#2b2a29ff",
"hint": "#721cafff",
"editor.foreground": "#e7e3e9ff",
"editor.background": "#201c22ff",
"editor.gutter.background": "#201c22ff",
"editor.line_number": "#721cafff",
"editor.active_line.background": "#3b3440ff",
"border": "#3b3440ff",
"editor.invisible": "#3b3440ff",
"title_bar.background": "#393837ff",
"tab.active_background": "#393837ff",
"tab_bar.background": "#1f1f1eff",
"tab.inactive_background": "#1f1f1eff",
"status_bar.background": "#393837ff",
"terminal.background": "#201c22ff",
"terminal.foreground": "e7e3e9ff",
"terminal.ansi.black": "#e7e3e9ff",
"terminal.ansi.red": "#ad1c22ff",
"terminal.ansi.green": "#20a951ff",
"terminal.ansi.cyan": "#20a9aeff",
"terminal.ansi.blue": "#2059afff",
"terminal.ansi.magenta": "#d86ddbff",
"terminal.ansi.yellow": "#ad9622ff",
"terminal.ansi.white": "#201c22ff",
"terminal.ansi.bright_black": "#e7e3e9ff",
"terminal.ansi.bright_red": "#ad1c22ff",
"terminal.ansi.bright_green": "#20a951ff",
"terminal.ansi.bright_cyan": "#20a9aeff",
"terminal.ansi.bright_blue": "#2059afff",
"terminal.ansi.bright_magenta": "#d86ddbff",
"terminal.ansi.bright_yellow": "#ad9622ff",
"terminal.ansi.bright_white": "#201c22ff",
"players": [
{
"background": "#af5f27ff",
"cursor": "#af5f27ff",
"selection": "#af5f273d"
},
{
"background": "#d86ddbff",
"cursor": "#d86dbbff",
"selection": "#d86dbb3d"
}
],
"syntax": {
"comment.doc": {
"color": "#20a951ff"
},
"comment": {
"color": "#20a951ff"
},
"string": {
"color": "#29a9ae"
},
"number": {
"color": "#29a9ae"
},
"boolean": {
"color": "#29a9ae"
}
},
"editor.active_line_number": "201c22ff"
}
},
{
"name": "mpwb light",
"appearance": "light",
"style": {
"editor.background": "#e7e3e9ff",
"editor.foreground": "#201c22ff"
}
}
]
}