From f24dad4e4901a183b94aaa49d2347823b47d8101 Mon Sep 17 00:00:00 2001 From: Yu Cong Date: Tue, 3 Mar 2026 09:17:41 +0800 Subject: [PATCH] update zed settings & tasks --- zed/settings.json | 77 +++++++++++------- zed/settings_backup.json | 166 ++++++++++++++++++++++++++++----------- zed/tasks.json | 4 +- 3 files changed, 167 insertions(+), 80 deletions(-) diff --git a/zed/settings.json b/zed/settings.json index 05ac474..45bd47f 100644 --- a/zed/settings.json +++ b/zed/settings.json @@ -7,17 +7,33 @@ // custom settings, run `zed: open default settings` from the // command palette (cmd-shift-p / ctrl-shift-p) { - "ui_font_size": 15.0, - "buffer_font_weight": 400.0, - "drag_and_drop_selection": { - "delay": 0, - "enabled": true, + "diagnostics": { + "inline": { + "enabled": true + } }, + "ui_font_size": 16.0, + "show_edit_predictions": false, + "relative_line_numbers": "disabled", + "edit_predictions": { + "provider": "none" + }, + "remove_trailing_whitespace_on_save": false, + "inline_code_actions": true, + "gutter": { + "breakpoints": true, + "line_numbers": true, + }, + "drag_and_drop_selection": { + "delay": 100, + }, + "buffer_line_height": "comfortable", "terminal": { "font_family": ".ZedMono", + "font_size": 15.0, "detect_venv": "off", - "font_size": 14, }, + "show_wrap_guides": true, "title_bar": { "show_sign_in": false, }, @@ -33,31 +49,25 @@ "debugger": { "dock": "bottom", }, - "edit_predictions": { - "mode": "subtle", - "copilot": { - "proxy": null, - "proxy_no_verify": null, - }, - "enabled_in_text_threads": false, - }, "telemetry": { "diagnostics": false, "metrics": false, }, "base_keymap": "VSCode", + "buffer_font_features": { + "calt": false, + // "NWID": true + }, "buffer_font_family": "Iosevka Terminal Wide", - "buffer_font_size": 14, - "buffer_line_height": "comfortable", "project_panel": { "default_width": 280.0, "scrollbar": { "show": "never", - } + }, + "entry_spacing": "standard", }, "tab_size": 4, "format_on_save": "off", - "remove_trailing_whitespace_on_save": false, "ensure_final_newline_on_save": false, // "preferred_line_length": 80, "soft_wrap": "editor_width", @@ -69,19 +79,7 @@ "collaboration_panel": { "button": false, }, - "agent": { - "enabled": false, - }, - "features": { - // "copilot": false, - "edit_prediction_provider": "none", - }, // "vim_mode": true, - "languages": { - "Haskell": { - "tab_size": 2, - }, - }, ////// LSP config ////// "lsp": { "texlab": { @@ -105,4 +103,23 @@ "file_types": { "Cython": ["sage"], }, + "languages": { + "LaTeX": { + "show_edit_predictions": false + }, + "Haskell": { + "tab_size": 2, + "hard_tabs": false, + }, + }, + "theme_overrides": { + "One Light": { + "syntax": { + "link_text": { + "font_style": "normal" + } + } + }, + }, } + diff --git a/zed/settings_backup.json b/zed/settings_backup.json index b8e7d57..ca1011d 100644 --- a/zed/settings_backup.json +++ b/zed/settings_backup.json @@ -7,53 +7,123 @@ // custom settings, run `zed: open default settings` from the // command palette (cmd-shift-p / ctrl-shift-p) { - "edit_predictions": { - "mode": "subtle", - "copilot": { - "proxy": null, - "proxy_no_verify": null + "show_edit_predictions": false, + "relative_line_numbers": "disabled", + "agent": { + "default_model": { + "provider": "copilot_chat", + "model": "gpt-5-mini" + }, + "favorite_models": [], + "model_parameters": [] + }, + "edit_predictions": { + "mode": "eager", + "provider": "copilot" + }, + "remove_trailing_whitespace_on_save": false, + "inline_code_actions": true, + "gutter": { + "breakpoints": true, + "line_numbers": true, + }, + "drag_and_drop_selection": { + "delay": 100, + }, + "buffer_line_height": "comfortable", + "terminal": { + "font_family": ".ZedMono", + "font_size": 15.0, + "detect_venv": "off", + }, + "show_wrap_guides": true, + "title_bar": { + "show_sign_in": false, + }, + "git_panel": { + "default_width": 320.0, + }, + "outline_panel": { + "default_width": 320.0, + }, + "notification_panel": { + "dock": "right", + }, + "debugger": { + "dock": "bottom", + }, + "telemetry": { + "diagnostics": false, + "metrics": false, + }, + "base_keymap": "VSCode", + "ui_font_size": 16, + "buffer_font_features": { + "calt": false, + // "NWID": true + }, + "buffer_font_family": "Iosevka Terminal Wide", + "project_panel": { + "default_width": 320.0, + "scrollbar": { + "show": "never", + }, + "entry_spacing": "standard", + }, + "tab_size": 4, + "format_on_save": "off", + "ensure_final_newline_on_save": false, + // "preferred_line_length": 80, + "soft_wrap": "editor_width", + "git": { + "inline_blame": { + "enabled": false, + }, + }, + "collaboration_panel": { + "button": false, + }, + // "vim_mode": true, + ////// LSP config ////// + "lsp": { + "texlab": { + "settings": { + "texlab": { + "build": { + "onSave": true, + "forwardSearchAfter": false, + }, + }, + }, + }, + "clangd": { + "binary": { + "ignore_system_version": true, + "path": "/opt/homebrew/opt/llvm/bin/clangd", + "arguments": [], + }, + }, + }, + "file_types": { + "Cython": ["sage"], + }, + "languages": { + "LaTeX": { + "show_edit_predictions": false + }, + "Haskell": { + "tab_size": 2, + "hard_tabs": false, + }, + }, + "theme_overrides": { + "One Light": { + "syntax": { + "link_text": { + "font_style": "normal" + } + } + }, }, - "enabled_in_text_threads": false - }, - "telemetry": { - "diagnostics": false, - "metrics": false - }, - "base_keymap": "VSCode", - "ui_font_size": 16, - "buffer_font_size": 16, - "theme": { - "mode": "system", - "light": "One Light", - "dark": "One Dark" - }, - "buffer_font_family": "CaskaydiaCove Nerd Font", - "toolbar": { - "breadcrumbs": false, - "quick_actions": false - }, - "terminal": { - "toolbar": { - "breadcrumbs": false - } - }, - "format_on_save": "off", - // "preferred_line_length": 80, - "soft_wrap": "editor_width", - "git": { - "inline_blame": { - "enabled": false - } - }, - "collaboration_panel": { - "button": false - }, - "assistant": { - "enabled": false, - "version": "2" - }, - "features": { - "copilot": false, - "inline_completion_provider": "none" - } } + diff --git a/zed/tasks.json b/zed/tasks.json index 8065805..6d01cbe 100644 --- a/zed/tasks.json +++ b/zed/tasks.json @@ -1,9 +1,9 @@ [ { "label": "forward_search", - "command": "/Applications/Skim.app/Contents/SharedSupport/displayline -g $ZED_ROW $ZED_DIRNAME/$ZED_STEM.pdf", + "command": "/Applications/Skim.app/Contents/SharedSupport/displayline -g $ZED_ROW \"$ZED_DIRNAME/$ZED_STEM.pdf\"", "allow_concurrent_runs": false, "reveal": "never", "hide": "always" } -] \ No newline at end of file +]