default.json

  1{
  2  // The name of the Zed theme to use for the UI
  3  "theme": "One Dark",
  4  // The name of a base set of key bindings to use.
  5  // This setting can take four values, each named after another
  6  // text editor:
  7  //
  8  // 1. "VSCode"
  9  // 2. "JetBrains"
 10  // 3. "SublimeText"
 11  // 4. "Atom"
 12  "base_keymap": "VSCode",
 13  // Features that can be globally enabled or disabled
 14  "features": {
 15    // Show Copilot icon in status bar
 16    "copilot": true
 17  },
 18  // The name of a font to use for rendering text in the editor
 19  "buffer_font_family": "Zed Mono",
 20  // The OpenType features to enable for text in the editor.
 21  "buffer_font_features": {
 22    // Disable ligatures:
 23    // "calt": false
 24  },
 25  // The default font size for text in the editor
 26  "buffer_font_size": 15,
 27  // Set the buffer's line height.
 28  // May take 3 values:
 29  //  1. Use a line height that's comfortable for reading (1.618)
 30  //         "line_height": "comfortable"
 31  //  2. Use a standard line height, (1.3)
 32  //         "line_height": "standard",
 33  //  3. Use a custom line height
 34  //         "line_height": {
 35  //           "custom": 2
 36  //         },
 37  "buffer_line_height": "comfortable",
 38  // The factor to grow the active pane by. Defaults to 1.0
 39  // which gives the same size as all other panes.
 40  "active_pane_magnification": 1.0,
 41  // Whether to enable vim modes and key bindings
 42  "vim_mode": false,
 43  // Whether to show the informational hover box when moving the mouse
 44  // over symbols in the editor.
 45  "hover_popover_enabled": true,
 46  // Whether to confirm before quitting Zed.
 47  "confirm_quit": false,
 48  // Whether the cursor blinks in the editor.
 49  "cursor_blink": true,
 50  // Whether to pop the completions menu while typing in an editor without
 51  // explicitly requesting it.
 52  "show_completions_on_input": true,
 53  // Whether to show wrap guides in the editor. Setting this to true will
 54  // show a guide at the 'preferred_line_length' value if softwrap is set to
 55  // 'preferred_line_length', and will show any additional guides as specified
 56  // by the 'wrap_guides' setting.
 57  "show_wrap_guides": true,
 58  // Character counts at which to show wrap guides in the editor.
 59  "wrap_guides": [],
 60  // Whether to use additional LSP queries to format (and amend) the code after
 61  // every "trigger" symbol input, defined by LSP server capabilities.
 62  "use_on_type_format": true,
 63  // Controls whether copilot provides suggestion immediately
 64  // or waits for a `copilot::Toggle`
 65  "show_copilot_suggestions": true,
 66  // Whether to show tabs and spaces in the editor.
 67  // This setting can take two values:
 68  //
 69  // 1. Draw tabs and spaces only for the selected text (default):
 70  //    "selection"
 71  // 2. Do not draw any tabs or spaces:
 72  //   "none"
 73  // 3. Draw all invisible symbols:
 74  //   "all"
 75  "show_whitespaces": "selection",
 76  // Settings related to calls in Zed
 77  "calls": {
 78    // Join calls with the microphone muted by default
 79    "mute_on_join": false
 80  },
 81  // Scrollbar related settings
 82  "scrollbar": {
 83    // When to show the scrollbar in the editor.
 84    // This setting can take four values:
 85    //
 86    // 1. Show the scrollbar if there's important information or
 87    //    follow the system's configured behavior (default):
 88    //   "auto"
 89    // 2. Match the system's configured behavior:
 90    //    "system"
 91    // 3. Always show the scrollbar:
 92    //    "always"
 93    // 4. Never show the scrollbar:
 94    //    "never"
 95    "show": "auto",
 96    // Whether to show git diff indicators in the scrollbar.
 97    "git_diff": true,
 98    // Whether to show selections in the scrollbar.
 99    "selections": true
100  },
101  "relative_line_numbers": false,
102  // Inlay hint related settings
103  "inlay_hints": {
104    // Global switch to toggle hints on and off, switched off by default.
105    "enabled": false,
106    // Toggle certain types of hints on and off, all switched on by default.
107    "show_type_hints": true,
108    "show_parameter_hints": true,
109    // Corresponds to null/None LSP hint type value.
110    "show_other_hints": true
111  },
112  "project_panel": {
113    // Default width of the project panel.
114    "default_width": 240,
115    // Where to dock project panel. Can be 'left' or 'right'.
116    "dock": "left",
117    // Whether to show file icons in the project panel.
118    "file_icons": true,
119    // Whether to show folder icons or chevrons for directories in the project panel.
120    "folder_icons": true,
121    // Whether to show the git status in the project panel.
122    "git_status": true,
123    // Amount of indentation for nested items.
124    "indent_size": 20
125  },
126  "collaboration_panel": {
127    // Whether to show the collaboration panel button in the status bar.
128    "button": true,
129    // Where to dock channels panel. Can be 'left' or 'right'.
130    "dock": "left",
131    // Default width of the channels panel.
132    "default_width": 240
133  },
134  "chat_panel": {
135    // Whether to show the collaboration panel button in the status bar.
136    "button": true,
137    // Where to dock channels panel. Can be 'left' or 'right'.
138    "dock": "right",
139    // Default width of the channels panel.
140    "default_width": 240
141  },
142  "assistant": {
143    // Whether to show the assistant panel button in the status bar.
144    "button": true,
145    // Where to dock the assistant. Can be 'left', 'right' or 'bottom'.
146    "dock": "right",
147    // Default width when the assistant is docked to the left or right.
148    "default_width": 640,
149    // Default height when the assistant is docked to the bottom.
150    "default_height": 320,
151    // The default OpenAI model to use when starting new conversations. This
152    // setting can take two values:
153    //
154    // 1. "gpt-3.5-turbo-0613""
155    // 2. "gpt-4-0613""
156    "default_open_ai_model": "gpt-4-0613"
157  },
158  // Whether the screen sharing icon is shown in the os status bar.
159  "show_call_status_icon": true,
160  // Whether to use language servers to provide code intelligence.
161  "enable_language_server": true,
162  // When to automatically save edited buffers. This setting can
163  // take four values.
164  //
165  // 1. Never automatically save:
166  //     "autosave": "off",
167  // 2. Save when changing focus away from the Zed window:
168  //     "autosave": "on_window_change",
169  // 3. Save when changing focus away from a specific buffer:
170  //     "autosave": "on_focus_change",
171  // 4. Save when idle for a certain amount of time:
172  //     "autosave": { "after_delay": {"milliseconds": 500} },
173  "autosave": "off",
174  // Settings related to the editor's tabs
175  "tabs": {
176    // Show git status colors in the editor tabs.
177    "git_status": false,
178    // Position of the close button on the editor tabs.
179    "close_position": "right"
180  },
181  // Whether or not to remove any trailing whitespace from lines of a buffer
182  // before saving it.
183  "remove_trailing_whitespace_on_save": true,
184  // Whether to start a new line with a comment when a previous line is a comment as well.
185  "extend_comment_on_newline": true,
186  // Whether or not to ensure there's a single newline at the end of a buffer
187  // when saving it.
188  "ensure_final_newline_on_save": true,
189  // Whether or not to perform a buffer format before saving
190  "format_on_save": "on",
191  // How to perform a buffer format. This setting can take two values:
192  //
193  // 1. Format code using the current language server:
194  //     "formatter": "language_server"
195  // 2. Format code using an external command:
196  //     "formatter": {
197  //       "external": {
198  //         "command": "prettier",
199  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
200  //       }
201  //     }
202  // 3. Format code using Zed's Prettier integration:
203  //     "formatter": "prettier"
204  // 4. Default. Format files using Zed's Prettier integration (if applicable),
205  //    or falling back to formatting via language server:
206  //     "formatter": "auto"
207  "formatter": "auto",
208  // How to soft-wrap long lines of text. This setting can take
209  // three values:
210  //
211  // 1. Do not soft wrap.
212  //      "soft_wrap": "none",
213  // 2. Soft wrap lines that overflow the editor:
214  //      "soft_wrap": "editor_width",
215  // 3. Soft wrap lines at the preferred line length
216  //      "soft_wrap": "preferred_line_length",
217  "soft_wrap": "none",
218  // The column at which to soft-wrap lines, for buffers where soft-wrap
219  // is enabled.
220  "preferred_line_length": 80,
221  // Whether to indent lines using tab characters, as opposed to multiple
222  // spaces.
223  "hard_tabs": false,
224  // How many columns a tab should occupy.
225  "tab_size": 4,
226  // Control what info is collected by Zed.
227  "telemetry": {
228    // Send debug info like crash reports.
229    "diagnostics": true,
230    // Send anonymized usage data like what languages you're using Zed with.
231    "metrics": true
232  },
233  // Automatically update Zed
234  "auto_update": true,
235  // Diagnostics configuration.
236  "diagnostics": {
237    // Whether to show warnings or not by default.
238    "include_warnings": true
239  },
240  // Git gutter behavior configuration.
241  "git": {
242    // Control whether the git gutter is shown. May take 2 values:
243    // 1. Show the gutter
244    //      "git_gutter": "tracked_files"
245    // 2. Hide the gutter
246    //      "git_gutter": "hide"
247    "git_gutter": "tracked_files"
248  },
249  "copilot": {
250    // The set of glob patterns for which copilot should be disabled
251    // in any matching file.
252    "disabled_globs": [
253      ".env"
254    ]
255  },
256  // Settings specific to journaling
257  "journal": {
258    // The path of the directory where journal entries are stored
259    "path": "~",
260    // What format to display the hours in
261    // May take 2 values:
262    // 1. hour12
263    // 2. hour24
264    "hour_format": "hour12"
265  },
266  // Settings specific to the terminal
267  "terminal": {
268    // What shell to use when opening a terminal. May take 3 values:
269    // 1. Use the system's default terminal configuration in /etc/passwd
270    //      "shell": "system"
271    // 2. A program:
272    //      "shell": {
273    //        "program": "sh"
274    //      }
275    // 3. A program with arguments:
276    //     "shell": {
277    //         "with_arguments": {
278    //           "program": "/bin/bash",
279    //           "arguments": ["--login"]
280    //         }
281    //     }
282    "shell": "system",
283    // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
284    "dock": "bottom",
285    // Default width when the terminal is docked to the left or right.
286    "default_width": 640,
287    // Default height when the terminal is docked to the bottom.
288    "default_height": 320,
289    // What working directory to use when launching the terminal.
290    // May take 4 values:
291    // 1. Use the current file's project directory.  Will Fallback to the
292    //    first project directory strategy if unsuccessful
293    //      "working_directory": "current_project_directory"
294    // 2. Use the first project in this workspace's directory
295    //      "working_directory": "first_project_directory"
296    // 3. Always use this platform's home directory (if we can find it)
297    //     "working_directory": "always_home"
298    // 4. Always use a specific directory. This value will be shell expanded.
299    //    If this path is not a valid directory the terminal will default to
300    //    this platform's home directory  (if we can find it)
301    //      "working_directory": {
302    //        "always": {
303    //          "directory": "~/zed/projects/"
304    //        }
305    //      }
306    "working_directory": "current_project_directory",
307    // Set the cursor blinking behavior in the terminal.
308    // May take 4 values:
309    //  1. Never blink the cursor, ignoring the terminal mode
310    //         "blinking": "off",
311    //  2. Default the cursor blink to off, but allow the terminal to
312    //     set blinking
313    //         "blinking": "terminal_controlled",
314    //  3. Always blink the cursor, ignoring the terminal mode
315    //         "blinking": "on",
316    "blinking": "terminal_controlled",
317    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
318    // Alternate Scroll mode converts mouse scroll events into up / down key
319    // presses when in the alternate screen (e.g. when running applications
320    // like vim or  less). The terminal can still set and unset this mode.
321    // May take 2 values:
322    //  1. Default alternate scroll mode to on
323    //         "alternate_scroll": "on",
324    //  2. Default alternate scroll mode to off
325    //         "alternate_scroll": "off",
326    "alternate_scroll": "off",
327    // Set whether the option key behaves as the meta key.
328    // May take 2 values:
329    //  1. Rely on default platform handling of option key, on macOS
330    //     this means generating certain unicode characters
331    //         "option_to_meta": false,
332    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
333    //         "option_to_meta": true,
334    "option_as_meta": false,
335    // Whether or not selecting text in the terminal will automatically
336    // copy to the system clipboard.
337    "copy_on_select": false,
338    // Any key-value pairs added to this list will be added to the terminal's
339    // environment. Use `:` to separate multiple values.
340    "env": {
341      // "KEY": "value1:value2"
342    },
343    // Set the terminal's line height.
344    // May take 3 values:
345    //  1. Use a line height that's comfortable for reading, 1.618
346    //         "line_height": "comfortable"
347    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
348    //      particularly if they use box characters
349    //         "line_height": "standard",
350    //  3. Use a custom line height.
351    //         "line_height": {
352    //           "custom": 2
353    //         },
354    "line_height": "comfortable",
355    // Activate the python virtual environment, if one is found, in the
356    // terminal's working directory (as resolved by the working_directory
357    // setting). Set this to "off" to disable this behavior.
358    "detect_venv": {
359      "on": {
360        // Default directories to search for virtual environments, relative
361        // to the current working directory. We recommend overriding this
362        // in your project's settings, rather than globally.
363        "directories": [
364          ".env",
365          "env",
366          ".venv",
367          "venv"
368        ],
369        // Can also be 'csh', 'fish', and `nushell`
370        "activate_script": "default"
371      }
372    }
373    // Set the terminal's font size. If this option is not included,
374    // the terminal will default to matching the buffer's font size.
375    // "font_size": "15",
376    // Set the terminal's font family. If this option is not included,
377    // the terminal will default to matching the buffer's font family.
378    // "font_family": "Zed Mono",
379    // ---
380  },
381  // Difference settings for semantic_index
382  "semantic_index": {
383    "enabled": true
384  },
385  // Settings specific to our elixir integration
386  "elixir": {
387    // Change the LSP zed uses for elixir.
388    // Note that changing this setting requires a restart of Zed
389    // to take effect.
390    //
391    // May take 3 values:
392    //  1. Use the standard ElixirLS, this is the default
393    //         "lsp": "elixir_ls"
394    //  2. Use the experimental NextLs
395    //         "lsp": "next_ls",
396    //  3. Use a language server installed locally on your machine:
397    //         "lsp": {
398    //           "local": {
399    //             "path": "~/next-ls/bin/start",
400    //             "arguments": ["--stdio"]
401    //            }
402    //          },
403    //
404    "lsp": "elixir_ls"
405  },
406  // Different settings for specific languages.
407  "languages": {
408    "Plain Text": {
409      "soft_wrap": "preferred_line_length"
410    },
411    "Elixir": {
412      "tab_size": 2
413    },
414    "Go": {
415      "tab_size": 4,
416      "hard_tabs": true
417    },
418    "Markdown": {
419      "soft_wrap": "preferred_line_length"
420    },
421    "JavaScript": {
422      "tab_size": 2
423    },
424    "TypeScript": {
425      "tab_size": 2
426    },
427    "TSX": {
428      "tab_size": 2
429    },
430    "YAML": {
431      "tab_size": 2
432    },
433    "JSON": {
434      "tab_size": 2
435    }
436  },
437  // Zed's Prettier integration settings.
438  // If Prettier is enabled, Zed will use this its Prettier instance for any applicable file, if
439  // project has no other Prettier installed.
440  "prettier": {
441    // Use regular Prettier json configuration:
442    // "trailingComma": "es5",
443    // "tabWidth": 4,
444    // "semi": false,
445    // "singleQuote": true
446  },
447  // LSP Specific settings.
448  "lsp": {
449    // Specify the LSP name as a key here.
450    // "rust-analyzer": {
451    //     //These initialization options are merged into Zed's defaults
452    //     "initialization_options": {
453    //         "checkOnSave": {
454    //             "command": "clippy"
455    //         }
456    //     }
457    // }
458  }
459}