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