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 "file_scan_exclusions": [
273 "**/.git",
274 "**/.svn",
275 "**/.hg",
276 "**/CVS",
277 "**/.DS_Store",
278 "**/Thumbs.db",
279 "**/.classpath",
280 "**/.settings"
281 ],
282 // Git gutter behavior configuration.
283 "git": {
284 // Control whether the git gutter is shown. May take 2 values:
285 // 1. Show the gutter
286 // "git_gutter": "tracked_files"
287 // 2. Hide the gutter
288 // "git_gutter": "hide"
289 "git_gutter": "tracked_files"
290 },
291 "copilot": {
292 // The set of glob patterns for which copilot should be disabled
293 // in any matching file.
294 "disabled_globs": [".env"]
295 },
296 // Settings specific to journaling
297 "journal": {
298 // The path of the directory where journal entries are stored
299 "path": "~",
300 // What format to display the hours in
301 // May take 2 values:
302 // 1. hour12
303 // 2. hour24
304 "hour_format": "hour12"
305 },
306 // Settings specific to the terminal
307 "terminal": {
308 // What shell to use when opening a terminal. May take 3 values:
309 // 1. Use the system's default terminal configuration in /etc/passwd
310 // "shell": "system"
311 // 2. A program:
312 // "shell": {
313 // "program": "sh"
314 // }
315 // 3. A program with arguments:
316 // "shell": {
317 // "with_arguments": {
318 // "program": "/bin/bash",
319 // "arguments": ["--login"]
320 // }
321 // }
322 "shell": "system",
323 // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
324 "dock": "bottom",
325 // Default width when the terminal is docked to the left or right.
326 "default_width": 640,
327 // Default height when the terminal is docked to the bottom.
328 "default_height": 320,
329 // What working directory to use when launching the terminal.
330 // May take 4 values:
331 // 1. Use the current file's project directory. Will Fallback to the
332 // first project directory strategy if unsuccessful
333 // "working_directory": "current_project_directory"
334 // 2. Use the first project in this workspace's directory
335 // "working_directory": "first_project_directory"
336 // 3. Always use this platform's home directory (if we can find it)
337 // "working_directory": "always_home"
338 // 4. Always use a specific directory. This value will be shell expanded.
339 // If this path is not a valid directory the terminal will default to
340 // this platform's home directory (if we can find it)
341 // "working_directory": {
342 // "always": {
343 // "directory": "~/zed/projects/"
344 // }
345 // }
346 "working_directory": "current_project_directory",
347 // Set the cursor blinking behavior in the terminal.
348 // May take 4 values:
349 // 1. Never blink the cursor, ignoring the terminal mode
350 // "blinking": "off",
351 // 2. Default the cursor blink to off, but allow the terminal to
352 // set blinking
353 // "blinking": "terminal_controlled",
354 // 3. Always blink the cursor, ignoring the terminal mode
355 // "blinking": "on",
356 "blinking": "terminal_controlled",
357 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
358 // Alternate Scroll mode converts mouse scroll events into up / down key
359 // presses when in the alternate screen (e.g. when running applications
360 // like vim or less). The terminal can still set and unset this mode.
361 // May take 2 values:
362 // 1. Default alternate scroll mode to on
363 // "alternate_scroll": "on",
364 // 2. Default alternate scroll mode to off
365 // "alternate_scroll": "off",
366 "alternate_scroll": "off",
367 // Set whether the option key behaves as the meta key.
368 // May take 2 values:
369 // 1. Rely on default platform handling of option key, on macOS
370 // this means generating certain unicode characters
371 // "option_to_meta": false,
372 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
373 // "option_to_meta": true,
374 "option_as_meta": false,
375 // Whether or not selecting text in the terminal will automatically
376 // copy to the system clipboard.
377 "copy_on_select": false,
378 // Any key-value pairs added to this list will be added to the terminal's
379 // environment. Use `:` to separate multiple values.
380 "env": {
381 // "KEY": "value1:value2"
382 },
383 // Set the terminal's line height.
384 // May take 3 values:
385 // 1. Use a line height that's comfortable for reading, 1.618
386 // "line_height": "comfortable"
387 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
388 // particularly if they use box characters
389 // "line_height": "standard",
390 // 3. Use a custom line height.
391 // "line_height": {
392 // "custom": 2
393 // },
394 "line_height": "comfortable",
395 // Activate the python virtual environment, if one is found, in the
396 // terminal's working directory (as resolved by the working_directory
397 // setting). Set this to "off" to disable this behavior.
398 "detect_venv": {
399 "on": {
400 // Default directories to search for virtual environments, relative
401 // to the current working directory. We recommend overriding this
402 // in your project's settings, rather than globally.
403 "directories": [".env", "env", ".venv", "venv"],
404 // Can also be 'csh', 'fish', and `nushell`
405 "activate_script": "default"
406 }
407 }
408 // Set the terminal's font size. If this option is not included,
409 // the terminal will default to matching the buffer's font size.
410 // "font_size": "15",
411 // Set the terminal's font family. If this option is not included,
412 // the terminal will default to matching the buffer's font family.
413 // "font_family": "Zed Mono",
414 // ---
415 },
416 // Difference settings for semantic_index
417 "semantic_index": {
418 "enabled": true
419 },
420 // Settings specific to our elixir integration
421 "elixir": {
422 // Change the LSP zed uses for elixir.
423 // Note that changing this setting requires a restart of Zed
424 // to take effect.
425 //
426 // May take 3 values:
427 // 1. Use the standard ElixirLS, this is the default
428 // "lsp": "elixir_ls"
429 // 2. Use the experimental NextLs
430 // "lsp": "next_ls",
431 // 3. Use a language server installed locally on your machine:
432 // "lsp": {
433 // "local": {
434 // "path": "~/next-ls/bin/start",
435 // "arguments": ["--stdio"]
436 // }
437 // },
438 //
439 "lsp": "elixir_ls"
440 },
441 // Different settings for specific languages.
442 "languages": {
443 "Plain Text": {
444 "soft_wrap": "preferred_line_length"
445 },
446 "Elixir": {
447 "tab_size": 2
448 },
449 "Go": {
450 "tab_size": 4,
451 "hard_tabs": true
452 },
453 "Markdown": {
454 "soft_wrap": "preferred_line_length"
455 },
456 "JavaScript": {
457 "tab_size": 2
458 },
459 "TypeScript": {
460 "tab_size": 2
461 },
462 "TSX": {
463 "tab_size": 2
464 },
465 "YAML": {
466 "tab_size": 2
467 },
468 "JSON": {
469 "tab_size": 2
470 }
471 },
472 // Zed's Prettier integration settings.
473 // If Prettier is enabled, Zed will use this its Prettier instance for any applicable file, if
474 // project has no other Prettier installed.
475 "prettier": {
476 // Use regular Prettier json configuration:
477 // "trailingComma": "es5",
478 // "tabWidth": 4,
479 // "semi": false,
480 // "singleQuote": true
481 },
482 // LSP Specific settings.
483 "lsp": {
484 // Specify the LSP name as a key here.
485 // "rust-analyzer": {
486 // //These initialization options are merged into Zed's defaults
487 // "initialization_options": {
488 // "checkOnSave": {
489 // "command": "clippy"
490 // }
491 // }
492 // }
493 }
494}