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