1{
2 // The name of the Zed theme to use for the UI
3 "theme": "One Dark",
4 // Features that can be globally enabled or disabled
5 "features": {
6 // Show Copilot icon in status bar
7 "copilot": true
8 },
9 // The name of a font to use for rendering text in the editor
10 "buffer_font_family": "Zed Mono",
11 // The OpenType features to enable for text in the editor.
12 "buffer_font_features": {
13 // Disable ligatures:
14 // "calt": false
15 },
16 // The default font size for text in the editor
17 "buffer_font_size": 15,
18 // The factor to grow the active pane by. Defaults to 1.0
19 // which gives the same size as all other panes.
20 "active_pane_magnification": 1.0,
21 // Whether to enable vim modes and key bindings
22 "vim_mode": false,
23 // Whether to show the informational hover box when moving the mouse
24 // over symbols in the editor.
25 "hover_popover_enabled": true,
26 // Whether to confirm before quitting Zed.
27 "confirm_quit": false,
28 // Whether the cursor blinks in the editor.
29 "cursor_blink": true,
30 // Whether to pop the completions menu while typing in an editor without
31 // explicitly requesting it.
32 "show_completions_on_input": true,
33 // Controls whether copilot provides suggestion immediately
34 // or waits for a `copilot::Toggle`
35 "show_copilot_suggestions": true,
36 // Whether to show tabs and spaces in the editor.
37 // This setting can take two values:
38 //
39 // 1. Draw tabs and spaces only for the selected text (default):
40 // "selection"
41 // 2. Do not draw any tabs or spaces:
42 // "none"
43 // 3. Draw all invisible symbols:
44 // "all"
45 "show_whitespaces": "selection",
46 // Whether to show the scrollbar in the editor.
47 // This setting can take four values:
48 //
49 // 1. Show the scrollbar if there's important information or
50 // follow the system's configured behavior (default):
51 // "auto"
52 // 2. Match the system's configured behavior:
53 // "system"
54 // 3. Always show the scrollbar:
55 // "always"
56 "show_scrollbars": "auto",
57 // Whether the screen sharing icon is shown in the os status bar.
58 "show_call_status_icon": true,
59 // Whether to use language servers to provide code intelligence.
60 "enable_language_server": true,
61 // When to automatically save edited buffers. This setting can
62 // take four values.
63 //
64 // 1. Never automatically save:
65 // "autosave": "off",
66 // 2. Save when changing focus away from the Zed window:
67 // "autosave": "on_window_change",
68 // 3. Save when changing focus away from a specific buffer:
69 // "autosave": "on_focus_change",
70 // 4. Save when idle for a certain amount of time:
71 // "autosave": { "after_delay": {"milliseconds": 500} },
72 "autosave": "off",
73 // Where to place the dock by default. This setting can take three
74 // values:
75 //
76 // 1. Position the dock attached to the bottom of the workspace
77 // "default_dock_anchor": "bottom"
78 // 2. Position the dock to the right of the workspace like a side panel
79 // "default_dock_anchor": "right"
80 // 3. Position the dock full screen over the entire workspace"
81 // "default_dock_anchor": "expanded"
82 "default_dock_anchor": "bottom",
83 // Whether or not to remove any trailing whitespace from lines of a buffer
84 // before saving it.
85 "remove_trailing_whitespace_on_save": true,
86 // Whether or not to ensure there's a single newline at the end of a buffer
87 // when saving it.
88 "ensure_final_newline_on_save": true,
89 // Whether or not to perform a buffer format before saving
90 "format_on_save": "on",
91 // How to perform a buffer format. This setting can take two values:
92 //
93 // 1. Format code using the current language server:
94 // "format_on_save": "language_server"
95 // 2. Format code using an external command:
96 // "format_on_save": {
97 // "external": {
98 // "command": "prettier",
99 // "arguments": ["--stdin-filepath", "{buffer_path}"]
100 // }
101 // }
102 "formatter": "language_server",
103 // How to soft-wrap long lines of text. This setting can take
104 // three values:
105 //
106 // 1. Do not soft wrap.
107 // "soft_wrap": "none",
108 // 2. Soft wrap lines that overflow the editor:
109 // "soft_wrap": "editor_width",
110 // 3. Soft wrap lines at the preferred line length
111 // "soft_wrap": "preferred_line_length",
112 "soft_wrap": "none",
113 // The column at which to soft-wrap lines, for buffers where soft-wrap
114 // is enabled.
115 "preferred_line_length": 80,
116 // Whether to indent lines using tab characters, as opposed to multiple
117 // spaces.
118 "hard_tabs": false,
119 // How many columns a tab should occupy.
120 "tab_size": 4,
121 // Control what info is collected by Zed.
122 "telemetry": {
123 // Send debug info like crash reports.
124 "diagnostics": true,
125 // Send anonymized usage data like what languages you're using Zed with.
126 "metrics": true
127 },
128 // Automatically update Zed
129 "auto_update": true,
130 // Git gutter behavior configuration.
131 "git": {
132 // Control whether the git gutter is shown. May take 2 values:
133 // 1. Show the gutter
134 // "git_gutter": "tracked_files"
135 // 2. Hide the gutter
136 // "git_gutter": "hide"
137 "git_gutter": "tracked_files"
138 },
139 "copilot": {
140 // The set of glob patterns for which copilot should be disabled
141 // in any matching file.
142 "disabled_globs": [
143 ".env"
144 ]
145 },
146 // Settings specific to journaling
147 "journal": {
148 // The path of the directory where journal entries are stored
149 "path": "~",
150 // What format to display the hours in
151 // May take 2 values:
152 // 1. hour12
153 // 2. hour24
154 "hour_format": "hour12"
155 },
156 // Settings specific to the terminal
157 "terminal": {
158 // What shell to use when opening a terminal. May take 3 values:
159 // 1. Use the system's default terminal configuration in /etc/passwd
160 // "shell": "system"
161 // 2. A program:
162 // "shell": {
163 // "program": "sh"
164 // }
165 // 3. A program with arguments:
166 // "shell": {
167 // "with_arguments": {
168 // "program": "/bin/bash",
169 // "arguments": ["--login"]
170 // }
171 // }
172 "shell": "system",
173 // What working directory to use when launching the terminal.
174 // May take 4 values:
175 // 1. Use the current file's project directory. Will Fallback to the
176 // first project directory strategy if unsuccessful
177 // "working_directory": "current_project_directory"
178 // 2. Use the first project in this workspace's directory
179 // "working_directory": "first_project_directory"
180 // 3. Always use this platform's home directory (if we can find it)
181 // "working_directory": "always_home"
182 // 4. Always use a specific directory. This value will be shell expanded.
183 // If this path is not a valid directory the terminal will default to
184 // this platform's home directory (if we can find it)
185 // "working_directory": {
186 // "always": {
187 // "directory": "~/zed/projects/"
188 // }
189 // }
190 //
191 //
192 "working_directory": "current_project_directory",
193 // Set the cursor blinking behavior in the terminal.
194 // May take 4 values:
195 // 1. Never blink the cursor, ignoring the terminal mode
196 // "blinking": "off",
197 // 2. Default the cursor blink to off, but allow the terminal to
198 // set blinking
199 // "blinking": "terminal_controlled",
200 // 3. Always blink the cursor, ignoring the terminal mode
201 // "blinking": "on",
202 "blinking": "terminal_controlled",
203 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
204 // Alternate Scroll mode converts mouse scroll events into up / down key
205 // presses when in the alternate screen (e.g. when running applications
206 // like vim or less). The terminal can still set and unset this mode.
207 // May take 2 values:
208 // 1. Default alternate scroll mode to on
209 // "alternate_scroll": "on",
210 // 2. Default alternate scroll mode to off
211 // "alternate_scroll": "off",
212 "alternate_scroll": "off",
213 // Set whether the option key behaves as the meta key.
214 // May take 2 values:
215 // 1. Rely on default platform handling of option key, on macOS
216 // this means generating certain unicode characters
217 // "option_to_meta": false,
218 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
219 // "option_to_meta": true,
220 "option_as_meta": false,
221 // Whether or not selecting text in the terminal will automatically
222 // copy to the system clipboard.
223 "copy_on_select": false,
224 // Any key-value pairs added to this list will be added to the terminal's
225 // enviroment. Use `:` to seperate multiple values.
226 "env": {
227 // "KEY": "value1:value2"
228 },
229 // Set the terminal's line height.
230 // May take 3 values:
231 // 1. Use a line height that's comfortable for reading, 1.618
232 // "line_height": "comfortable"
233 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
234 // particularly if they use box characters
235 // "line_height": "standard",
236 // 3. Use a custom line height.
237 // "line_height": {
238 // "custom": 2
239 // },
240 //
241 "line_height": "comfortable"
242 // Set the terminal's font size. If this option is not included,
243 // the terminal will default to matching the buffer's font size.
244 // "font_size": "15"
245 // Set the terminal's font family. If this option is not included,
246 // the terminal will default to matching the buffer's font family.
247 // "font_family": "Zed Mono"
248 },
249 // Different settings for specific languages.
250 "languages": {
251 "Plain Text": {
252 "soft_wrap": "preferred_line_length"
253 },
254 "Elixir": {
255 "tab_size": 2
256 },
257 "Go": {
258 "tab_size": 4,
259 "hard_tabs": true
260 },
261 "Markdown": {
262 "soft_wrap": "preferred_line_length"
263 },
264 "JavaScript": {
265 "tab_size": 2
266 },
267 "TypeScript": {
268 "tab_size": 2
269 },
270 "TSX": {
271 "tab_size": 2
272 },
273 "YAML": {
274 "tab_size": 2
275 },
276 "JSON": {
277 "tab_size": 2
278 }
279 },
280 // LSP Specific settings.
281 "lsp": {
282 // Specify the LSP name as a key here.
283 // As of 8/10/22, supported LSPs are:
284 // pyright
285 // gopls
286 // rust-analyzer
287 // typescript-language-server
288 // vscode-json-languageserver
289 // "rust-analyzer": {
290 // //These initialization options are merged into Zed's defaults
291 // "initialization_options": {
292 // "checkOnSave": {
293 // "command": "clippy"
294 // }
295 // }
296 // }
297 }
298}