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