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