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