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 factor to grow the active pane by. Defaults to 1.0
39 // which gives the same size as all other panes.
40 "active_pane_magnification": 1.0,
41 // Whether to enable vim modes and key bindings
42 "vim_mode": false,
43 // Whether to show the informational hover box when moving the mouse
44 // over symbols in the editor.
45 "hover_popover_enabled": true,
46 // Whether to confirm before quitting Zed.
47 "confirm_quit": false,
48 // Whether the cursor blinks in the editor.
49 "cursor_blink": true,
50 // Whether to pop the completions menu while typing in an editor without
51 // explicitly requesting it.
52 "show_completions_on_input": true,
53 // Whether to show wrap guides in the editor. Setting this to true will
54 // show a guide at the 'preferred_line_length' value if softwrap is set to
55 // 'preferred_line_length', and will show any additional guides as specified
56 // by the 'wrap_guides' setting.
57 "show_wrap_guides": true,
58 // Character counts at which to show wrap guides in the editor.
59 "wrap_guides": [],
60 // Whether to use additional LSP queries to format (and amend) the code after
61 // every "trigger" symbol input, defined by LSP server capabilities.
62 "use_on_type_format": true,
63 // Controls whether copilot provides suggestion immediately
64 // or waits for a `copilot::Toggle`
65 "show_copilot_suggestions": true,
66 // Whether to show tabs and spaces in the editor.
67 // This setting can take two values:
68 //
69 // 1. Draw tabs and spaces only for the selected text (default):
70 // "selection"
71 // 2. Do not draw any tabs or spaces:
72 // "none"
73 // 3. Draw all invisible symbols:
74 // "all"
75 "show_whitespaces": "selection",
76 // Settings related to calls in Zed
77 "calls": {
78 // Join calls with the microphone muted by default
79 "mute_on_join": true
80 },
81 // Scrollbar related settings
82 "scrollbar": {
83 // When to show the scrollbar in the editor.
84 // This setting can take four values:
85 //
86 // 1. Show the scrollbar if there's important information or
87 // follow the system's configured behavior (default):
88 // "auto"
89 // 2. Match the system's configured behavior:
90 // "system"
91 // 3. Always show the scrollbar:
92 // "always"
93 // 4. Never show the scrollbar:
94 // "never"
95 "show": "auto",
96 // Whether to show git diff indicators in the scrollbar.
97 "git_diff": true,
98 // Whether to show selections in the scrollbar.
99 "selections": true
100 },
101 // Inlay hint related settings
102 "inlay_hints": {
103 // Global switch to toggle hints on and off, switched off by default.
104 "enabled": false,
105 // Toggle certain types of hints on and off, all switched on by default.
106 "show_type_hints": true,
107 "show_parameter_hints": true,
108 // Corresponds to null/None LSP hint type value.
109 "show_other_hints": true
110 },
111 "project_panel": {
112 // Default width of the project panel.
113 "default_width": 240,
114 // Where to dock project panel. Can be 'left' or 'right'.
115 "dock": "left",
116 // Whether to show file icons in the project panel.
117 "file_icons": true,
118 // Whether to show folder icons or chevrons for directories in the project panel.
119 "folder_icons": true,
120 // Whether to show the git status in the project panel.
121 "git_status": true,
122 // Amount of indentation for nested items.
123 "indent_size": 20
124 },
125 "channels_panel": {
126 // Where to dock channels panel. Can be 'left' or 'right'.
127 "dock": "left",
128 // Default width of the channels panel.
129 "default_width": 240
130 },
131 "assistant": {
132 // Where to dock the assistant. Can be 'left', 'right' or 'bottom'.
133 "dock": "right",
134 // Default width when the assistant is docked to the left or right.
135 "default_width": 640,
136 // Default height when the assistant is docked to the bottom.
137 "default_height": 320
138 },
139 // Whether the screen sharing icon is shown in the os status bar.
140 "show_call_status_icon": true,
141 // Whether to use language servers to provide code intelligence.
142 "enable_language_server": true,
143 // When to automatically save edited buffers. This setting can
144 // take four values.
145 //
146 // 1. Never automatically save:
147 // "autosave": "off",
148 // 2. Save when changing focus away from the Zed window:
149 // "autosave": "on_window_change",
150 // 3. Save when changing focus away from a specific buffer:
151 // "autosave": "on_focus_change",
152 // 4. Save when idle for a certain amount of time:
153 // "autosave": { "after_delay": {"milliseconds": 500} },
154 "autosave": "off",
155 // Settings related to the editor's tabs
156 "tabs": {
157 // Show git status colors in the editor tabs.
158 "git_status": false,
159 // Position of the close button on the editor tabs.
160 "close_position": "right"
161 },
162 // Whether or not to remove any trailing whitespace from lines of a buffer
163 // before saving it.
164 "remove_trailing_whitespace_on_save": true,
165 // Whether to start a new line with a comment when a previous line is a comment as well.
166 "extend_comment_on_newline": true,
167 // Whether or not to ensure there's a single newline at the end of a buffer
168 // when saving it.
169 "ensure_final_newline_on_save": true,
170 // Whether or not to perform a buffer format before saving
171 "format_on_save": "on",
172 // How to perform a buffer format. This setting can take two values:
173 //
174 // 1. Format code using the current language server:
175 // "formatter": "language_server"
176 // 2. Format code using an external command:
177 // "formatter": {
178 // "external": {
179 // "command": "prettier",
180 // "arguments": ["--stdin-filepath", "{buffer_path}"]
181 // }
182 // }
183 "formatter": "language_server",
184 // How to soft-wrap long lines of text. This setting can take
185 // three values:
186 //
187 // 1. Do not soft wrap.
188 // "soft_wrap": "none",
189 // 2. Soft wrap lines that overflow the editor:
190 // "soft_wrap": "editor_width",
191 // 3. Soft wrap lines at the preferred line length
192 // "soft_wrap": "preferred_line_length",
193 "soft_wrap": "none",
194 // The column at which to soft-wrap lines, for buffers where soft-wrap
195 // is enabled.
196 "preferred_line_length": 80,
197 // Whether to indent lines using tab characters, as opposed to multiple
198 // spaces.
199 "hard_tabs": false,
200 // How many columns a tab should occupy.
201 "tab_size": 4,
202 // Control what info is collected by Zed.
203 "telemetry": {
204 // Send debug info like crash reports.
205 "diagnostics": true,
206 // Send anonymized usage data like what languages you're using Zed with.
207 "metrics": true
208 },
209 // Automatically update Zed
210 "auto_update": true,
211 // Git gutter behavior configuration.
212 "git": {
213 // Control whether the git gutter is shown. May take 2 values:
214 // 1. Show the gutter
215 // "git_gutter": "tracked_files"
216 // 2. Hide the gutter
217 // "git_gutter": "hide"
218 "git_gutter": "tracked_files"
219 },
220 "copilot": {
221 // The set of glob patterns for which copilot should be disabled
222 // in any matching file.
223 "disabled_globs": [".env"]
224 },
225 // Settings specific to journaling
226 "journal": {
227 // The path of the directory where journal entries are stored
228 "path": "~",
229 // What format to display the hours in
230 // May take 2 values:
231 // 1. hour12
232 // 2. hour24
233 "hour_format": "hour12"
234 },
235 // Settings specific to the terminal
236 "terminal": {
237 // What shell to use when opening a terminal. May take 3 values:
238 // 1. Use the system's default terminal configuration in /etc/passwd
239 // "shell": "system"
240 // 2. A program:
241 // "shell": {
242 // "program": "sh"
243 // }
244 // 3. A program with arguments:
245 // "shell": {
246 // "with_arguments": {
247 // "program": "/bin/bash",
248 // "arguments": ["--login"]
249 // }
250 // }
251 "shell": "system",
252 // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
253 "dock": "bottom",
254 // Default width when the terminal is docked to the left or right.
255 "default_width": 640,
256 // Default height when the terminal is docked to the bottom.
257 "default_height": 320,
258 // What working directory to use when launching the terminal.
259 // May take 4 values:
260 // 1. Use the current file's project directory. Will Fallback to the
261 // first project directory strategy if unsuccessful
262 // "working_directory": "current_project_directory"
263 // 2. Use the first project in this workspace's directory
264 // "working_directory": "first_project_directory"
265 // 3. Always use this platform's home directory (if we can find it)
266 // "working_directory": "always_home"
267 // 4. Always use a specific directory. This value will be shell expanded.
268 // If this path is not a valid directory the terminal will default to
269 // this platform's home directory (if we can find it)
270 // "working_directory": {
271 // "always": {
272 // "directory": "~/zed/projects/"
273 // }
274 // }
275 //
276 //
277 "working_directory": "current_project_directory",
278 // Set the cursor blinking behavior in the terminal.
279 // May take 4 values:
280 // 1. Never blink the cursor, ignoring the terminal mode
281 // "blinking": "off",
282 // 2. Default the cursor blink to off, but allow the terminal to
283 // set blinking
284 // "blinking": "terminal_controlled",
285 // 3. Always blink the cursor, ignoring the terminal mode
286 // "blinking": "on",
287 "blinking": "terminal_controlled",
288 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
289 // Alternate Scroll mode converts mouse scroll events into up / down key
290 // presses when in the alternate screen (e.g. when running applications
291 // like vim or less). The terminal can still set and unset this mode.
292 // May take 2 values:
293 // 1. Default alternate scroll mode to on
294 // "alternate_scroll": "on",
295 // 2. Default alternate scroll mode to off
296 // "alternate_scroll": "off",
297 "alternate_scroll": "off",
298 // Set whether the option key behaves as the meta key.
299 // May take 2 values:
300 // 1. Rely on default platform handling of option key, on macOS
301 // this means generating certain unicode characters
302 // "option_to_meta": false,
303 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
304 // "option_to_meta": true,
305 "option_as_meta": false,
306 // Whether or not selecting text in the terminal will automatically
307 // copy to the system clipboard.
308 "copy_on_select": false,
309 // Any key-value pairs added to this list will be added to the terminal's
310 // environment. Use `:` to separate multiple values.
311 "env": {
312 // "KEY": "value1:value2"
313 },
314 // Set the terminal's line height.
315 // May take 3 values:
316 // 1. Use a line height that's comfortable for reading, 1.618
317 // "line_height": "comfortable"
318 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
319 // particularly if they use box characters
320 // "line_height": "standard",
321 // 3. Use a custom line height.
322 // "line_height": {
323 // "custom": 2
324 // },
325 "line_height": "comfortable"
326 // Set the terminal's font size. If this option is not included,
327 // the terminal will default to matching the buffer's font size.
328 // "font_size": "15"
329 // Set the terminal's font family. If this option is not included,
330 // the terminal will default to matching the buffer's font family.
331 // "font_family": "Zed Mono"
332 },
333 // Difference settings for semantic_index
334 "semantic_index": {
335 "enabled": false,
336 "reindexing_delay_seconds": 600
337 },
338 // Different settings for specific languages.
339 "languages": {
340 "Plain Text": {
341 "soft_wrap": "preferred_line_length"
342 },
343 "Elixir": {
344 "tab_size": 2
345 },
346 "Go": {
347 "tab_size": 4,
348 "hard_tabs": true
349 },
350 "Markdown": {
351 "soft_wrap": "preferred_line_length"
352 },
353 "JavaScript": {
354 "tab_size": 2
355 },
356 "TypeScript": {
357 "tab_size": 2
358 },
359 "TSX": {
360 "tab_size": 2
361 },
362 "YAML": {
363 "tab_size": 2
364 },
365 "JSON": {
366 "tab_size": 2
367 }
368 },
369 // LSP Specific settings.
370 "lsp": {
371 // Specify the LSP name as a key here.
372 // "rust-analyzer": {
373 // //These initialization options are merged into Zed's defaults
374 // "initialization_options": {
375 // "checkOnSave": {
376 // "command": "clippy"
377 // }
378 // }
379 // }
380 }
381}