diff --git a/.config/zed/keymap.json b/.config/zed/keymap.json new file mode 100644 index 0000000..db4b7d9 --- /dev/null +++ b/.config/zed/keymap.json @@ -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" + } + } +] diff --git a/.config/zed/settings.json b/.config/zed/settings.json new file mode 100644 index 0000000..f5f0a68 --- /dev/null +++ b/.config/zed/settings.json @@ -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 + } +} diff --git a/setup.sh b/setup.sh old mode 100755 new mode 100644 index fc1ad5f..3770037 --- a/setup.sh +++ b/setup.sh @@ -58,6 +58,7 @@ SYMLINKS=( ".config/tmux" ".config/wezterm" ".config/yay" + ".config/zed" ".local/bin" ".local/share/fonts" ".local/share/konsole" @@ -138,13 +139,13 @@ create_symlink() { src="${SCRIPT_DIR}/$rel_src" dst="${DEST_DIR}/$rel_dst" dst_parent="$(dirname -- "$dst")" - + if ! test -e "$src"; then error "the following source path does not exist:" error "$src" return 1 fi - + if ! test -d "$dst_parent"; then echo "Creating parent: $dst_parent" mkdir -p "$dst_parent" @@ -203,13 +204,13 @@ copy_item() { src="${SCRIPT_DIR}/$rel_src" dst="${DEST_DIR}/$rel_dst" dst_parent="$(dirname -- "$dst")" - + if ! test -e "$src"; then error "the following source path does not exist:" error "$src" return 1 fi - + if ! test -d "$dst_parent"; then echo "Creating parent: $dst_parent" mkdir -p "$dst_parent"