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