From 4e2bf491a0ff78a6aedbbd0a9d6277916a29b835 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 4 Jun 2026 23:48:45 +0800 Subject: [PATCH] chore(zed): sync editor settings --- home/base/gui/zed-editor.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/home/base/gui/zed-editor.nix b/home/base/gui/zed-editor.nix index 3c2ca8ef..0eebb5b7 100644 --- a/home/base/gui/zed-editor.nix +++ b/home/base/gui/zed-editor.nix @@ -8,10 +8,45 @@ userSettings = { # Editor behavior + auto_signature_help = true; autosave = "on_focus_change"; + code_lens = "on"; + completion_menu_item_kind = "symbol"; + completions.lsp_fetch_timeout_ms = 2000; + diagnostics.inline.enabled = true; + document_folding_ranges = "off"; inlay_hints.enabled = true; + minimap.show = "auto"; + relative_line_numbers = "enabled"; + semantic_tokens = "combined"; soft_wrap = "editor_width"; + vertical_scroll_margin = 5.0; which_key.enabled = true; + indent_guides = { + background_coloring = "indent_aware"; + coloring = "indent_aware"; + }; + + # Search + search.regex = true; + use_smartcase_search = true; + + # Formatting + prettier.allowed = true; + + # UI chrome + tabs = { + file_icons = true; + git_status = true; + }; + title_bar = { + show_branch_status_icon = true; + show_menus = false; + show_user_menu = true; + }; + + # Git + git.inline_blame.show_commit_summary = true; # Modal editing helix_mode = true; @@ -28,6 +63,7 @@ # App behavior auto_update = false; + cli_default_open_behavior = "existing_window"; # AI/editor integrations agent.play_sound_when_agent_done = "when_hidden";