feat: add zed config
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -58,6 +58,7 @@ SYMLINKS=(
|
|||||||
".config/tmux"
|
".config/tmux"
|
||||||
".config/wezterm"
|
".config/wezterm"
|
||||||
".config/yay"
|
".config/yay"
|
||||||
|
".config/zed"
|
||||||
".local/bin"
|
".local/bin"
|
||||||
".local/share/fonts"
|
".local/share/fonts"
|
||||||
".local/share/konsole"
|
".local/share/konsole"
|
||||||
@@ -138,13 +139,13 @@ create_symlink() {
|
|||||||
src="${SCRIPT_DIR}/$rel_src"
|
src="${SCRIPT_DIR}/$rel_src"
|
||||||
dst="${DEST_DIR}/$rel_dst"
|
dst="${DEST_DIR}/$rel_dst"
|
||||||
dst_parent="$(dirname -- "$dst")"
|
dst_parent="$(dirname -- "$dst")"
|
||||||
|
|
||||||
if ! test -e "$src"; then
|
if ! test -e "$src"; then
|
||||||
error "the following source path does not exist:"
|
error "the following source path does not exist:"
|
||||||
error "$src"
|
error "$src"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! test -d "$dst_parent"; then
|
if ! test -d "$dst_parent"; then
|
||||||
echo "Creating parent: $dst_parent"
|
echo "Creating parent: $dst_parent"
|
||||||
mkdir -p "$dst_parent"
|
mkdir -p "$dst_parent"
|
||||||
@@ -203,13 +204,13 @@ copy_item() {
|
|||||||
src="${SCRIPT_DIR}/$rel_src"
|
src="${SCRIPT_DIR}/$rel_src"
|
||||||
dst="${DEST_DIR}/$rel_dst"
|
dst="${DEST_DIR}/$rel_dst"
|
||||||
dst_parent="$(dirname -- "$dst")"
|
dst_parent="$(dirname -- "$dst")"
|
||||||
|
|
||||||
if ! test -e "$src"; then
|
if ! test -e "$src"; then
|
||||||
error "the following source path does not exist:"
|
error "the following source path does not exist:"
|
||||||
error "$src"
|
error "$src"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! test -d "$dst_parent"; then
|
if ! test -d "$dst_parent"; then
|
||||||
echo "Creating parent: $dst_parent"
|
echo "Creating parent: $dst_parent"
|
||||||
mkdir -p "$dst_parent"
|
mkdir -p "$dst_parent"
|
||||||
|
|||||||
Reference in New Issue
Block a user