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