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