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