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