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 // Color tab titles based on the git status of the buffer.
132 "tabs": {
133 "git_status": false
134 },
135 // Whether or not to remove any trailing whitespace from lines of a buffer
136 // before saving it.
137 "remove_trailing_whitespace_on_save": true,
138 // Whether to start a new line with a comment when a previous line is a comment as well.
139 "extend_comment_on_newline": true,
140 // Whether or not to ensure there's a single newline at the end of a buffer
141 // when saving it.
142 "ensure_final_newline_on_save": true,
143 // Whether or not to perform a buffer format before saving
144 "format_on_save": "on",
145 // How to perform a buffer format. This setting can take two values:
146 //
147 // 1. Format code using the current language server:
148 // "formatter": "language_server"
149 // 2. Format code using an external command:
150 // "formatter": {
151 // "external": {
152 // "command": "prettier",
153 // "arguments": ["--stdin-filepath", "{buffer_path}"]
154 // }
155 // }
156 "formatter": "language_server",
157 // How to soft-wrap long lines of text. This setting can take
158 // three values:
159 //
160 // 1. Do not soft wrap.
161 // "soft_wrap": "none",
162 // 2. Soft wrap lines that overflow the editor:
163 // "soft_wrap": "editor_width",
164 // 3. Soft wrap lines at the preferred line length
165 // "soft_wrap": "preferred_line_length",
166 "soft_wrap": "none",
167 // The column at which to soft-wrap lines, for buffers where soft-wrap
168 // is enabled.
169 "preferred_line_length": 80,
170 // Whether to indent lines using tab characters, as opposed to multiple
171 // spaces.
172 "hard_tabs": false,
173 // How many columns a tab should occupy.
174 "tab_size": 4,
175 // Control what info is collected by Zed.
176 "telemetry": {
177 // Send debug info like crash reports.
178 "diagnostics": true,
179 // Send anonymized usage data like what languages you're using Zed with.
180 "metrics": true
181 },
182 // Automatically update Zed
183 "auto_update": true,
184 // Git gutter behavior configuration.
185 "git": {
186 // Control whether the git gutter is shown. May take 2 values:
187 // 1. Show the gutter
188 // "git_gutter": "tracked_files"
189 // 2. Hide the gutter
190 // "git_gutter": "hide"
191 "git_gutter": "tracked_files"
192 },
193 "copilot": {
194 // The set of glob patterns for which copilot should be disabled
195 // in any matching file.
196 "disabled_globs": [
197 ".env"
198 ]
199 },
200 // Settings specific to journaling
201 "journal": {
202 // The path of the directory where journal entries are stored
203 "path": "~",
204 // What format to display the hours in
205 // May take 2 values:
206 // 1. hour12
207 // 2. hour24
208 "hour_format": "hour12"
209 },
210 // Settings specific to the terminal
211 "terminal": {
212 // What shell to use when opening a terminal. May take 3 values:
213 // 1. Use the system's default terminal configuration in /etc/passwd
214 // "shell": "system"
215 // 2. A program:
216 // "shell": {
217 // "program": "sh"
218 // }
219 // 3. A program with arguments:
220 // "shell": {
221 // "with_arguments": {
222 // "program": "/bin/bash",
223 // "arguments": ["--login"]
224 // }
225 // }
226 "shell": "system",
227 // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
228 "dock": "bottom",
229 // Default width when the terminal is docked to the left or right.
230 "default_width": 640,
231 // Default height when the terminal is docked to the bottom.
232 "default_height": 320,
233 // What working directory to use when launching the terminal.
234 // May take 4 values:
235 // 1. Use the current file's project directory. Will Fallback to the
236 // first project directory strategy if unsuccessful
237 // "working_directory": "current_project_directory"
238 // 2. Use the first project in this workspace's directory
239 // "working_directory": "first_project_directory"
240 // 3. Always use this platform's home directory (if we can find it)
241 // "working_directory": "always_home"
242 // 4. Always use a specific directory. This value will be shell expanded.
243 // If this path is not a valid directory the terminal will default to
244 // this platform's home directory (if we can find it)
245 // "working_directory": {
246 // "always": {
247 // "directory": "~/zed/projects/"
248 // }
249 // }
250 //
251 //
252 "working_directory": "current_project_directory",
253 // Set the cursor blinking behavior in the terminal.
254 // May take 4 values:
255 // 1. Never blink the cursor, ignoring the terminal mode
256 // "blinking": "off",
257 // 2. Default the cursor blink to off, but allow the terminal to
258 // set blinking
259 // "blinking": "terminal_controlled",
260 // 3. Always blink the cursor, ignoring the terminal mode
261 // "blinking": "on",
262 "blinking": "terminal_controlled",
263 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
264 // Alternate Scroll mode converts mouse scroll events into up / down key
265 // presses when in the alternate screen (e.g. when running applications
266 // like vim or less). The terminal can still set and unset this mode.
267 // May take 2 values:
268 // 1. Default alternate scroll mode to on
269 // "alternate_scroll": "on",
270 // 2. Default alternate scroll mode to off
271 // "alternate_scroll": "off",
272 "alternate_scroll": "off",
273 // Set whether the option key behaves as the meta key.
274 // May take 2 values:
275 // 1. Rely on default platform handling of option key, on macOS
276 // this means generating certain unicode characters
277 // "option_to_meta": false,
278 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
279 // "option_to_meta": true,
280 "option_as_meta": false,
281 // Whether or not selecting text in the terminal will automatically
282 // copy to the system clipboard.
283 "copy_on_select": false,
284 // Any key-value pairs added to this list will be added to the terminal's
285 // environment. Use `:` to separate multiple values.
286 "env": {
287 // "KEY": "value1:value2"
288 },
289 // Set the terminal's line height.
290 // May take 3 values:
291 // 1. Use a line height that's comfortable for reading, 1.618
292 // "line_height": "comfortable"
293 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
294 // particularly if they use box characters
295 // "line_height": "standard",
296 // 3. Use a custom line height.
297 // "line_height": {
298 // "custom": 2
299 // },
300 "line_height": "comfortable"
301 // Set the terminal's font size. If this option is not included,
302 // the terminal will default to matching the buffer's font size.
303 // "font_size": "15"
304 // Set the terminal's font family. If this option is not included,
305 // the terminal will default to matching the buffer's font family.
306 // "font_family": "Zed Mono"
307 },
308 // Difference settings for vector_store
309 "vector_store": {
310 "enabled": false,
311 "reindexing_delay_seconds": 600
312 },
313 // Different settings for specific languages.
314 "languages": {
315 "Plain Text": {
316 "soft_wrap": "preferred_line_length"
317 },
318 "Elixir": {
319 "tab_size": 2
320 },
321 "Go": {
322 "tab_size": 4,
323 "hard_tabs": true
324 },
325 "Markdown": {
326 "soft_wrap": "preferred_line_length"
327 },
328 "JavaScript": {
329 "tab_size": 2
330 },
331 "TypeScript": {
332 "tab_size": 2
333 },
334 "TSX": {
335 "tab_size": 2
336 },
337 "YAML": {
338 "tab_size": 2
339 },
340 "JSON": {
341 "tab_size": 2
342 }
343 },
344 // LSP Specific settings.
345 "lsp": {
346 // Specify the LSP name as a key here.
347 // As of 8/10/22, supported LSPs are:
348 // pyright
349 // gopls
350 // rust-analyzer
351 // typescript-language-server
352 // vscode-json-languageserver
353 // "rust-analyzer": {
354 // //These initialization options are merged into Zed's defaults
355 // "initialization_options": {
356 // "checkOnSave": {
357 // "command": "clippy"
358 // }
359 // }
360 // }
361 }
362}