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