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