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