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