nix/programs/zed: remove clutter and add new keybinds
Anirudh Oppiliappan x@icyphox.sh
Sat, 25 Jan 2025 12:48:20 +0200
2 files changed,
25 insertions(+),
5 deletions(-)
M
programs/zed/keymap.nix
→
programs/zed/keymap.nix
@@ -20,6 +20,8 @@ "space n" = "pane::ActivateNextItem";
"space p" = "pane::ActivatePrevItem"; "space e" = "file_finder::Toggle"; "space shift-e" = "workspace::NewSearch"; + "space ?" = "workspace::ToggleRightDock"; + "space shift-f" = "workspace::ToggleLeftDock"; }; } {
M
programs/zed/settings.nix
→
programs/zed/settings.nix
@@ -7,6 +7,10 @@ telemetry = {
diagnostics = false; metrics = false; }; + active_pane_modifiers = { + inactive_opacity = 0.8; + magnification = 1.5; + }; base_keymap = "VSCode"; buffer_font_size = 15; theme = {@@ -14,7 +18,7 @@ mode = "system";
light = "Warm Icy Light"; dark = "Warm Icy Dark"; }; - buffer_font_family = if isDarwin then "SF Mono" else "Input"; + buffer_font_family = "SF Mono"; buffer_font_weight = 500; ui_font_family = if isDarwin then "System Font" else "Inter"; ui_font_size = 18;@@ -24,18 +28,25 @@ use_system_clipboard = "never";
}; gutter = { line_numbers = false; + runnables = false; + folds = false; }; terminal = { + button = false; working_directory = "current_project_directory"; option_as_meta = true; env = { - EDITOR = "zeditor --wait"; + EDITOR = if isDarwin then "zed --wait" else "zeditor --wait"; }; shell = { program = "fish"; }; + }; + outline_panel = { + button = false; }; project_panel = { + button = false; file_icons = false; folder_icons = false; indent_size = 10;@@ -44,6 +55,9 @@ chat_panel = {
button = false; }; collaboration_panel = { + button = false; + }; + notification_panel = { button = false; }; assistant = {@@ -53,17 +67,21 @@ model = "claude-3-5-sonnet";
}; version = "2"; enabled = true; - button = true; + button = false; }; scrollbar = { show = "never"; }; toolbar = { - breadcrumbs = true; - quick_actions = true; + breadcrumbs = false; + quick_actions = false; + selections_menu = false; }; tab_bar = { show = false; + }; + preview_tabs = { + enable = false; }; };