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