Zed editor settings and symlinks.

This commit is contained in:
2026-06-23 08:34:58 +02:00
parent 0faf3e3eef
commit 25612fc232
3 changed files with 130 additions and 85 deletions
+72 -41
View File
@@ -2,38 +2,34 @@
// ─── UNBINDS ──────────────────────────────────────────────────────────────── // ─── UNBINDS ────────────────────────────────────────────────────────────────
{ {
"context": "Editor && vim_mode == insert", "context": "Editor && vim_mode == insert",
"bindings": { "ctrl-l": null, "ctrl-h": null } "bindings": { "ctrl-l": null, "ctrl-h": null },
}, },
{ {
"context": "FileFinder || FileFinder > Picker > Editor || FileFinder > Picker > menu", "context": "FileFinder || FileFinder > Picker > Editor || FileFinder > Picker > menu",
"bindings": { "ctrl-l": null, "ctrl-h": null } "bindings": { "ctrl-l": null, "ctrl-h": null },
}, },
{ {
"context": "BufferSearchBar", "context": "BufferSearchBar",
"bindings": { "ctrl-l": null, "ctrl-h": null } "bindings": { "ctrl-l": null, "ctrl-h": null },
}, },
{ {
"context": "vim_mode == literal", "context": "vim_mode == literal",
"bindings": { "ctrl-l": null } "bindings": { "ctrl-l": null, "ctrl-h": null },
}, },
{ {
"context": "VimControl && !menu", "context": "VimControl && !menu",
"bindings": { "ctrl-b": null, "ctrl-o": null } "bindings": { "ctrl-b": null, "ctrl-o": null, "ctrl-h": null, "ctrl-j": null, "ctrl-k": null, "ctrl-l": null },
}, },
{ {
"context": "Workspace", "context": "Workspace",
"bindings": { "ctrl-b": null} "bindings": { "ctrl-b": null, "ctrl-h": null, "ctrl-j": null, "ctrl-k": null, "ctrl-l": null },
}, },
{ {
"unbind": { "ctrl-o": "workspace::OpenFiles" } "context": "Editor",
"bindings": { "ctrl-h": null, "ctrl-j": null, "ctrl-k": null, "ctrl-l": null },
}, },
// ─── PANE NAVIGATION ────────────────────────────────────────────────────────
{ {
"context": "Editor && vim_mode == normal", "unbind": { "ctrl-o": "workspace::OpenFiles" },
"bindings": {
"ctrl-h": "pane::ActivatePreviousItem",
"ctrl-l": "pane::ActivateNextItem"
}
}, },
// ─── EDITOR ───────────────────────────────────────────────────────────────── // ─── EDITOR ─────────────────────────────────────────────────────────────────
{ {
@@ -42,29 +38,29 @@
"ctrl-e": "project_panel::Toggle", "ctrl-e": "project_panel::Toggle",
"ctrl-f": "pane::DeploySearch", "ctrl-f": "pane::DeploySearch",
"ctrl-o": "terminal_panel::Toggle", "ctrl-o": "terminal_panel::Toggle",
"ctrl-m": "tab_switcher::ToggleAll" "ctrl-m": "tab_switcher::ToggleAll",
} },
}, },
// ─── BUFFER SEARCH BAR ────────────────────────────────────────────────────── // ─── BUFFER SEARCH BAR ──────────────────────────────────────────────────────
{ {
"context": "BufferSearchBar", "context": "BufferSearchBar",
"bindings": { "bindings": {
"ctrl-r": "search::ToggleReplace" "ctrl-r": "search::ToggleReplace",
} },
}, },
// ─── PROJECT SEARCH BAR ───────────────────────────────────────────────────── // ─── PROJECT SEARCH BAR ─────────────────────────────────────────────────────
{ {
"context": "ProjectSearchBar", "context": "ProjectSearchBar",
"bindings": { "bindings": {
"ctrl-r": "search::ToggleReplace" "ctrl-r": "search::ToggleReplace",
} },
}, },
// ─── PROJECT SEARCH RESULTS ────────────────────────────────────────────────── // ─── PROJECT SEARCH RESULTS ──────────────────────────────────────────────────
{ {
"context": "VimControl && !menu", "context": "VimControl && !menu",
"bindings": { "bindings": {
"enter": "editor::OpenExcerpts" "enter": "editor::OpenExcerpts",
} },
}, },
// ─── PROJECT PANEL (FILE TREE) ─────────────────────────────────────────────── // ─── PROJECT PANEL (FILE TREE) ───────────────────────────────────────────────
{ {
@@ -73,65 +69,100 @@
"ctrl-e": "project_panel::Toggle", "ctrl-e": "project_panel::Toggle",
"a": "project_panel::NewFile", "a": "project_panel::NewFile",
"d": "project_panel::Delete", "d": "project_panel::Delete",
"r": "project_panel::Rename" "r": "project_panel::Rename",
} },
}, },
// ─── TERMINAL ─────────────────────────────────────────────────────────────── // ─── TERMINAL ───────────────────────────────────────────────────────────────
{ {
"context": "Terminal", "context": "Terminal",
"bindings": { "bindings": {
"ctrl-o": "terminal_panel::Toggle", "ctrl-o": "terminal_panel::Toggle",
"ctrl-h": "pane::ActivatePreviousItem",
"ctrl-l": "pane::ActivateNextItem",
"ctrl-q": "pane::CloseActiveItem", "ctrl-q": "pane::CloseActiveItem",
"ctrl-j": "terminal::Clear" },
} },
// ─── PANE NAVIGATION (vim-style) ────────────────────────────────────────────
{
"context": "VimControl && vim_mode == normal && !menu",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
},
},
{
"context": "Pane && not_editing",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
},
},
{
"context": "Terminal",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
},
},
{
"context": "ProjectPanel",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
},
}, },
// ─── WORKSPACE ────────────────────────────────────────────────────────────── // ─── WORKSPACE ──────────────────────────────────────────────────────────────
{ {
"context": "Workspace", "context": "Workspace",
"bindings": { "bindings": {
"ctrl-e": "project_panel::Toggle",
"ctrl-o": "terminal_panel::Toggle", "ctrl-o": "terminal_panel::Toggle",
"ctrl-p": "file_finder::Toggle" "ctrl-p": "file_finder::Toggle",
} },
}, },
// ─── CTRL-W CLOSE → CTRL-W Q ──────────────────────────────────────────────── // ─── CTRL-W CLOSE → CTRL-W Q ────────────────────────────────────────────────
{ {
"context": "Pane", "context": "Pane",
"bindings": { "ctrl-w": null } "bindings": { "ctrl-w": null },
}, },
{ {
"context": "Workspace", "context": "Workspace",
"bindings": { "ctrl-w": null } "bindings": { "ctrl-w": null },
}, },
{ {
"context": "SettingsWindow", "context": "SettingsWindow",
"bindings": { "ctrl-w": null } "bindings": { "ctrl-w": null },
}, },
{ {
"context": "Pane", "context": "Pane",
"bindings": { "ctrl-w q": "pane::CloseActiveItem" } "bindings": { "ctrl-w q": "pane::CloseActiveItem" },
}, },
{ {
"context": "SettingsWindow", "context": "SettingsWindow",
"bindings": { "ctrl-w q": "workspace::CloseWindow" } "bindings": { "ctrl-w q": "workspace::CloseWindow" },
}, },
{ {
"context": "Workspace", "context": "Workspace",
"unbind": { "unbind": {
"ctrl-`": "terminal_panel::Toggle" "ctrl-`": "terminal_panel::Toggle",
} },
}, },
{ {
"context": "Workspace", "context": "Workspace",
"bindings": { "bindings": {
"ctrl-`": "projects::OpenRecent" "ctrl-`": "projects::OpenRecent",
} },
}, },
{ {
"context": "Workspace", "context": "Workspace",
"unbind": { "unbind": {
"ctrl-r": "projects::OpenRecent" "ctrl-r": "projects::OpenRecent",
} },
} },
] ]
+56 -44
View File
@@ -1,15 +1,14 @@
{ {
"use_system_window_tabs": false,
"window_decorations": "server",
// ─── CORE BEHAVIOR ─────────────────────────────────────────────────────────── // ─── CORE BEHAVIOR ───────────────────────────────────────────────────────────
"gutter": { "show_wrap_guides": false,
"bookmarks": false,
"runnables": false
},
"which_key": { "enabled": true }, "which_key": { "enabled": true },
"cursor_shape": "block", "cursor_shape": "block",
"vim_mode": true, "vim_mode": true,
"base_keymap": "VSCode", "base_keymap": "VSCode",
"restore_on_startup": "last_workspace", "restore_on_startup": "last_workspace",
"disable_ai": false, "disable_ai": true,
"session": { "trust_all_worktrees": true }, "session": { "trust_all_worktrees": true },
"telemetry": { "diagnostics": false, "metrics": false }, "telemetry": { "diagnostics": false, "metrics": false },
// ─── EDITOR BEHAVIOR ───────────────────────────────────────────────────────── // ─── EDITOR BEHAVIOR ─────────────────────────────────────────────────────────
@@ -21,25 +20,27 @@
"use_on_type_format": true, "use_on_type_format": true,
"centered_layout": { "centered_layout": {
"left_padding": 0.15, "left_padding": 0.15,
"right_padding": 0.15 "right_padding": 0.15,
}, },
"indent_guides": { "indent_guides": {
"coloring": "fixed", "coloring": "fixed",
"line_width": 1, "line_width": 1,
"active_line_width": 2 "active_line_width": 2,
},
"gutter": {
"bookmarks": false,
"runnables": false,
}, },
// ─── FONTS & TEXT RENDERING ────────────────────────────────────────────────── // ─── FONTS & TEXT RENDERING ──────────────────────────────────────────────────
"buffer_font_family": "Consolas", "buffer_font_family": "JetBrainsMono Nerd Font Mono",
"buffer_font_size": 14.5, "buffer_font_size": 15.7,
"buffer_font_features": { "liga": false }, "buffer_font_features": { "liga": false },
"buffer_line_height": { "custom": 2.2 }, "buffer_line_height": { "custom": 2.2 },
"ui_font_size": 14, "ui_font_family": "Inter Display",
"ui_font_size": 16.5,
// ─── THEME & APPEARANCE ────────────────────────────────────────────────────── // ─── THEME & APPEARANCE ──────────────────────────────────────────────────────
"theme": { "icon_theme": "Warm Charmed Icons",
"mode": "system", "theme": "Kanagawa Wave - No Italics",
"light": "One Light",
"dark": "VSCode Dark Modern"
},
"theme_overrides": { "theme_overrides": {
"VSCode Dark Modern": { "VSCode Dark Modern": {
"border": "#1e1e1e", "border": "#1e1e1e",
@@ -48,43 +49,42 @@
"panel.background": "#1e1e1e", "panel.background": "#1e1e1e",
"panel.focused_border": "#bbbbbb", "panel.focused_border": "#bbbbbb",
"editor.document_highlight.read_background": "#00000000", "editor.document_highlight.read_background": "#00000000",
"editor.document_highlight.write_background": "#00000000" "editor.document_highlight.write_background": "#00000000",
} },
}, },
"icon_theme": { "scrollbar": { "selected_symbol": true, "show": "never" },
"mode": "light",
"light": "Warm Charmed Icons",
"dark": "Warm Charmed Icons"
},
"scrollbar": { "selected_symbol": true,
"show": "never" },
// ─── TAB BAR & TABS ────────────────────────────────────────────────────────── // ─── TAB BAR & TABS ──────────────────────────────────────────────────────────
"tab_bar": { "tab_bar": {
"show": true, "show": false,
"show_nav_history_buttons": false, "show_nav_history_buttons": false,
"show_tab_bar_buttons": false "show_tab_bar_buttons": false,
}, },
"tabs": { "tabs": {
"close_position": "left", "close_position": "left",
"file_icons": false, "file_icons": false,
"git_status": false "git_status": false,
}, },
// ─── TOOLBAR & STATUS BAR ──────────────────────────────────────────────────── // ─── TOOLBAR & STATUS BAR ────────────────────────────────────────────────────
"toolbar": { "toolbar": {
"breadcrumbs": false, "breadcrumbs": false,
"quick_actions": false, "quick_actions": false,
"selections_menu": false, "selections_menu": false,
"agent_review": false "agent_review": false,
}, },
"status_bar": { "status_bar": {
"cursor_position_button": true, "cursor_position_button": true,
"active_language_button": true "active_language_button": true,
}, },
"title_bar": { "title_bar": {
"show_branch_name": true, "show_menus": false,
"button_layout": "platform_default",
"show_onboarding_banner": false,
"show_project_items": false,
"show_branch_status_icon": false,
"show_branch_name": false,
"show_user_picture": false, "show_user_picture": false,
"show_user_menu": false, "show_user_menu": false,
"show_sign_in": false "show_sign_in": false,
}, },
// ─── PANELS & DOCKS ────────────────────────────────────────────────────────── // ─── PANELS & DOCKS ──────────────────────────────────────────────────────────
"project_panel": { "project_panel": {
@@ -92,7 +92,7 @@
"starts_open": false, "starts_open": false,
"hide_root": true, "hide_root": true,
"bold_folder_labels": true, "bold_folder_labels": true,
"button": false "button": false,
}, },
"outline_panel": { "button": true, "dock": "left" }, "outline_panel": { "button": true, "dock": "left" },
"git_panel": { "dock": "left" }, "git_panel": { "dock": "left" },
@@ -104,12 +104,24 @@
"agent": { "agent": {
"dock": "right", "dock": "right",
"favorite_models": [], "favorite_models": [],
"model_parameters": [] "model_parameters": [],
}, },
// ─── BUTTONS ───────────────────────────────────────────────────────────────── // ─── BUTTONS ─────────────────────────────────────────────────────────────────
"search": { "button": true }, "search": { "button": true },
"debugger": { "button": false }, "debugger": { "button": false },
"diagnostics": { "button": false }, "diagnostics": { "button": false },
// ─── GIT INTEGRATION ───────────────────────────────────────────────────────
"git": {
"blame": {
"show_avatar": false
},
"inline_blame": {
"enabled": false
},
"git_gutter": "tracked_files",
"enable_diff": true,
"enable_status": true
},
// ─── LANGUAGE SERVERS ──────────────────────────────────────────────────────── // ─── LANGUAGE SERVERS ────────────────────────────────────────────────────────
"languages": { "languages": {
"PHP": { "PHP": {
@@ -119,31 +131,31 @@
"!phptools", "!phptools",
"!outsourced", "!outsourced",
"tailwindcss-language-server", "tailwindcss-language-server",
"..." "...",
] ],
}, },
"HTML": { "HTML": {
"language_servers": ["!tailwindcss-language-server", "..."] "language_servers": ["!tailwindcss-language-server", "..."],
}, },
"CSS": { "CSS": {
"language_servers": ["!tailwindcss-language-server", "..."] "language_servers": ["!tailwindcss-language-server", "..."],
}, },
"JavaScript": { "JavaScript": {
"language_servers": ["!tailwindcss-language-server", "..."] "language_servers": ["!tailwindcss-language-server", "..."],
}, },
"TypeScript": { "TypeScript": {
"language_servers": ["!tailwindcss-language-server", "..."] "language_servers": ["!tailwindcss-language-server", "..."],
}, },
"JSON": { "JSON": {
"language_servers": ["!json-language-server", "..."] "language_servers": ["!json-language-server", "..."],
}, },
"Markdown": { "Markdown": {
"language_servers": [ "language_servers": [
"markdown-oxide", "markdown-oxide",
"!tailwindcss-language-server", "!tailwindcss-language-server",
"!json-language-server", "!json-language-server",
"..." "...",
] ],
} },
} },
} }
+2
View File
@@ -88,6 +88,8 @@ if [ "$DO_LINKS" = true ]; then
link_file "$DOTFILES_DIR/config/fish" "$HOME/.config/fish" link_file "$DOTFILES_DIR/config/fish" "$HOME/.config/fish"
link_file "$DOTFILES_DIR/config/alacritty" "$HOME/.config/alacritty" link_file "$DOTFILES_DIR/config/alacritty" "$HOME/.config/alacritty"
link_file "$DOTFILES_DIR/config/nvim" "$HOME/.config/nvim" link_file "$DOTFILES_DIR/config/nvim" "$HOME/.config/nvim"
link_file "$DOTFILES_DIR/config/zed/keymap.json" "$HOME/.config/zed/keymap.json"
link_file "$DOTFILES_DIR/config/zed/settings.json" "$HOME/.config/zed/settings.json"
link_file "$DOTFILES_DIR/config/lf" "$HOME/.config/lf" link_file "$DOTFILES_DIR/config/lf" "$HOME/.config/lf"
link_file "$DOTFILES_DIR/config/polybar" "$HOME/.config/polybar" link_file "$DOTFILES_DIR/config/polybar" "$HOME/.config/polybar"
link_file "$DOTFILES_DIR/config/rofi" "$HOME/.config/rofi" link_file "$DOTFILES_DIR/config/rofi" "$HOME/.config/rofi"