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