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