settings.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. //
  2. // Zed settings — keep this MINIMAL: only overrides vs Zed defaults.
  3. // Full key reference: command palette -> "zed: open default settings".
  4. // Docs: https://zed.dev/docs/configuring-zed
  5. //
  6. // Rebuilt 2026-05-31: AI/agent config, MCP context servers, and the
  7. // transparency theme_overrides were stripped for a clean baseline.
  8. // Backup of the old config: ~/zed-backup-20260531-151032.zip
  9. //
  10. {
  11. // theme
  12. "agent_servers": {
  13. "claude-acp": {
  14. "default_config_options": {
  15. "mode": "acceptEdits",
  16. },
  17. "type": "registry",
  18. },
  19. },
  20. "minimum_split_diff_width": 220.0,
  21. "diff_view_style": "split",
  22. "agent": {
  23. "use_modifier_to_send": true,
  24. "thinking_display": "preview",
  25. "play_sound_when_agent_done": "when_hidden",
  26. "sidebar_side": "right",
  27. "button": true,
  28. "favorite_models": [],
  29. "model_parameters": [],
  30. },
  31. "theme": {
  32. "mode": "dark",
  33. "light": "One Light",
  34. "dark": "macOS Classic Dark"
  35. },
  36. "icon_theme": {
  37. "mode": "dark",
  38. "light": "Monospace Icon Theme - Dark",
  39. "dark": "Monospace Icon Theme - Dark"
  40. },
  41. // fonts
  42. "ui_font_family": "Iosevka Aile",
  43. "ui_font_size": 14,
  44. "buffer_font_family": "Iosevka Slab Extended",
  45. "buffer_font_size": 14,
  46. // editor
  47. "show_whitespaces": "selection",
  48. "soft_wrap": "editor_width",
  49. "always_treat_brackets_as_autoclosed": true,
  50. "use_autoclose": true,
  51. "confirm_quit": true,
  52. "active_pane_modifiers": {
  53. "inactive_opacity": 0.8,
  54. },
  55. // one focused window per project
  56. "cli_default_open_behavior": "new_window",
  57. "use_system_window_tabs": false,
  58. // ui chrome
  59. "title_bar": {
  60. "show_menus": false,
  61. "show_branch_status_icon": false,
  62. },
  63. "status_bar": {
  64. "show_active_file": false,
  65. "line_endings_button": false,
  66. },
  67. "collaboration_panel": {
  68. "button": false,
  69. },
  70. "bottom_dock_layout": "full",
  71. // tabs
  72. "preview_tabs": {
  73. "enable_keep_preview_on_code_navigation": true,
  74. "enable_preview_from_file_finder": true,
  75. },
  76. "tab_bar": {
  77. "show_pinned_tabs_in_separate_row": true,
  78. "show_nav_history_buttons": true,
  79. },
  80. "tabs": {
  81. "show_diagnostics": "errors",
  82. "activate_on_close": "left_neighbour",
  83. "file_icons": false,
  84. "close_position": "left",
  85. "git_status": true,
  86. },
  87. // search
  88. "search": {
  89. "button": true,
  90. "regex": true,
  91. },
  92. // minimap
  93. "minimap": {
  94. "thumb_border": "none",
  95. "show": "auto",
  96. "thumb": "hover",
  97. // "thumb_border": "left_open",
  98. "current_line_highlight": "line",
  99. },
  100. // git
  101. "git": {
  102. "inline_blame": {
  103. "min_column": 80,
  104. "show_commit_summary": true,
  105. },
  106. "git_gutter": null,
  107. "worktree_directory": ".worktrees",
  108. },
  109. // terminal
  110. "terminal": {
  111. "font_family": "Iosevka Term Slab",
  112. "toolbar": {
  113. "breadcrumbs": true,
  114. },
  115. "env": {
  116. "EDITOR": "zed --wait",
  117. },
  118. },
  119. // panels
  120. "project_panel": {
  121. "entry_spacing": "comfortable",
  122. "button": true,
  123. "indent_size": 7,
  124. "auto_reveal_entries": true,
  125. "auto_fold_dirs": true,
  126. },
  127. "outline_panel": {
  128. "dock": "left",
  129. "indent_size": 7,
  130. },
  131. // type hints / lsp
  132. "inlay_hints": {
  133. "enabled": false,
  134. "show_type_hints": false,
  135. "show_parameter_hints": true,
  136. "show_other_hints": true,
  137. },
  138. "lsp": {
  139. "typescript-language-server": {
  140. "initialization_options": {
  141. "preferences": {
  142. "includeInlayParameterNameHints": "all",
  143. "includeInlayFunctionParameterTypeHints": true,
  144. "includeInlayVariableTypeHints": true,
  145. "includeInlayPropertyDeclarationTypeHints": true,
  146. "includeInlayFunctionLikeReturnTypeHints": true,
  147. },
  148. },
  149. },
  150. "pyright": {
  151. "settings": {
  152. "python.analysis": {
  153. "diagnosticMode": "workspace",
  154. },
  155. "python": {
  156. "pythonPath": ".venv/bin/python",
  157. },
  158. },
  159. },
  160. "typos": {
  161. "initialization_options": {
  162. "diagnosticSeverity": "Hint",
  163. },
  164. },
  165. },
  166. // languages / formatting
  167. "languages": {
  168. "JSON": {
  169. "prettier": { "allowed": true, "parser": "json" },
  170. },
  171. "JavaScript": {
  172. "format_on_save": "on",
  173. "code_actions_on_format": { "source.organizeImports": true },
  174. },
  175. "TypeScript": {
  176. "format_on_save": "on",
  177. "code_actions_on_format": { "source.organizeImports": true },
  178. },
  179. "TSX": {
  180. "format_on_save": "on",
  181. "code_actions_on_format": {
  182. "source.organizeImports": true,
  183. "source.fixAll": true,
  184. },
  185. },
  186. "Python": {
  187. "format_on_save": "on",
  188. "formatter": {
  189. "external": { "command": "black", "arguments": ["-"] },
  190. },
  191. },
  192. },
  193. }