feat: add zed config

This commit is contained in:
2025-04-28 07:49:36 +02:00
parent 8d1ec154e4
commit 9b84dcba5d
3 changed files with 107 additions and 4 deletions
+48
View File
@@ -0,0 +1,48 @@
// 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": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
},
{
"context": "vim_mode == normal",
"bindings": {
"t n": "workspace::NewFile",
"t q": "pane::CloseActiveItem",
"space f e": "project_panel::ToggleFocus",
"space f f": "file_finder::Toggle",
"space f g": "workspace::NewSearch",
"space g g": "git_panel::ToggleFocus",
"space g d": "git::Diff"
}
},
{
"context": "GitPanel",
"bindings": {
"c c": "git_panel::FocusEditor"
}
},
{
"context": "GitDiff",
"bindings": {
"space g s": "git::StageAndNext",
"space g u": "git::UnstageAndNext",
"space g c": "git::Commit",
"space g a": "git::Amend"
}
}
]
+54
View File
@@ -0,0 +1,54 @@
// 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)
{
"ssh_connections": [
{
"host": "192.168.2.22",
"projects": [
{
"paths": ["~/repos/argparse.go"]
}
]
}
],
"vim_mode": true,
"ui_font_size": 16,
"buffer_font_size": 16,
"buffer_font_family": "Iosevka Custom",
"theme": {
"mode": "system",
"light": "One Light",
"dark": "One Dark"
},
"wrap_guides": [80],
"selection_highlight": false,
"scrollbar": {
"show": "never"
},
"vim": {
"toggle_relative_line_numbers": true,
"use_system_clipboard": "on_yank"
},
"git": {
"git_gutter": null,
"gutter_debounce": null,
"inline_blame": {
"enabled": false
},
"hunk_style": null
},
"indent_guides": {
"enabled": true
},
"experimental.theme_overrides": {
"editor.document_highlight.read_background": "#0000", // disable (transparent)
"editor.document_highlight.write_background": "#0000", // disable (transparent)
"editor.document_highlight.bracket_background": "#5c78e225" // use default write_background
}
}