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