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 },
113 "git": {
114 // Control whether the git gutter is shown. May take 2 values:
115 // 1. Show the gutter
116 // "git_gutter": "tracked_files"
117 // 2. Hide the gutter
118 // "git_gutter": "hide"
119 "git_gutter": "tracked_files"
120 },
121 "copilot": {
122 // The set of glob patterns for which copilot should be disabled
123 // in any matching file.
124 "disabled_globs": [
125 ".env"
126 ]
127 },
128 // Settings specific to journaling
129 "journal": {
130 // The path of the directory where journal entries are stored
131 "path": "~",
132 // What format to display the hours in
133 // May take 2 values:
134 // 1. hour12
135 // 2. hour24
136 "hour_format": "hour12"
137 },
138 // Settings specific to the terminal
139 "terminal": {
140 // What shell to use when opening a terminal. May take 3 values:
141 // 1. Use the system's default terminal configuration in /etc/passwd
142 // "shell": "system"
143 // 2. A program:
144 // "shell": {
145 // "program": "sh"
146 // }
147 // 3. A program with arguments:
148 // "shell": {
149 // "with_arguments": {
150 // "program": "/bin/bash",
151 // "arguments": ["--login"]
152 // }
153 // }
154 "shell": "system",
155 // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
156 "dock": "bottom",
157 // What working directory to use when launching the terminal.
158 // May take 4 values:
159 // 1. Use the current file's project directory. Will Fallback to the
160 // first project directory strategy if unsuccessful
161 // "working_directory": "current_project_directory"
162 // 2. Use the first project in this workspace's directory
163 // "working_directory": "first_project_directory"
164 // 3. Always use this platform's home directory (if we can find it)
165 // "working_directory": "always_home"
166 // 4. Always use a specific directory. This value will be shell expanded.
167 // If this path is not a valid directory the terminal will default to
168 // this platform's home directory (if we can find it)
169 // "working_directory": {
170 // "always": {
171 // "directory": "~/zed/projects/"
172 // }
173 // }
174 //
175 //
176 "working_directory": "current_project_directory",
177 // Set the cursor blinking behavior in the terminal.
178 // May take 4 values:
179 // 1. Never blink the cursor, ignoring the terminal mode
180 // "blinking": "off",
181 // 2. Default the cursor blink to off, but allow the terminal to
182 // set blinking
183 // "blinking": "terminal_controlled",
184 // 3. Always blink the cursor, ignoring the terminal mode
185 // "blinking": "on",
186 "blinking": "terminal_controlled",
187 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
188 // Alternate Scroll mode converts mouse scroll events into up / down key
189 // presses when in the alternate screen (e.g. when running applications
190 // like vim or less). The terminal can still set and unset this mode.
191 // May take 2 values:
192 // 1. Default alternate scroll mode to on
193 // "alternate_scroll": "on",
194 // 2. Default alternate scroll mode to off
195 // "alternate_scroll": "off",
196 "alternate_scroll": "off",
197 // Set whether the option key behaves as the meta key.
198 // May take 2 values:
199 // 1. Rely on default platform handling of option key, on macOS
200 // this means generating certain unicode characters
201 // "option_to_meta": false,
202 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
203 // "option_to_meta": true,
204 "option_as_meta": false,
205 // Whether or not selecting text in the terminal will automatically
206 // copy to the system clipboard.
207 "copy_on_select": false,
208 // Any key-value pairs added to this list will be added to the terminal's
209 // enviroment. Use `:` to seperate multiple values.
210 "env": {
211 // "KEY": "value1:value2"
212 },
213 // Set the terminal's line height.
214 // May take 3 values:
215 // 1. Use a line height that's comfortable for reading, 1.618
216 // "line_height": "comfortable"
217 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
218 // particularly if they use box characters
219 // "line_height": "standard",
220 // 3. Use a custom line height.
221 // "line_height": {
222 // "custom": 2
223 // },
224 //
225 "line_height": "comfortable"
226 // Set the terminal's font size. If this option is not included,
227 // the terminal will default to matching the buffer's font size.
228 // "font_size": "15"
229 // Set the terminal's font family. If this option is not included,
230 // the terminal will default to matching the buffer's font family.
231 // "font_family": "Zed Mono"
232 },
233 // Different settings for specific languages.
234 "languages": {
235 "Plain Text": {
236 "soft_wrap": "preferred_line_length"
237 },
238 "Elixir": {
239 "tab_size": 2
240 },
241 "Go": {
242 "tab_size": 4,
243 "hard_tabs": true
244 },
245 "Markdown": {
246 "soft_wrap": "preferred_line_length"
247 },
248 "JavaScript": {
249 "tab_size": 2
250 },
251 "TypeScript": {
252 "tab_size": 2
253 },
254 "TSX": {
255 "tab_size": 2
256 },
257 "YAML": {
258 "tab_size": 2
259 },
260 "JSON": {
261 "tab_size": 2
262 }
263 },
264 // LSP Specific settings.
265 "lsp": {
266 // Specify the LSP name as a key here.
267 // As of 8/10/22, supported LSPs are:
268 // pyright
269 // gopls
270 // rust-analyzer
271 // typescript-language-server
272 // vscode-json-languageserver
273 // "rust-analyzer": {
274 // //These initialization options are merged into Zed's defaults
275 // "initialization_options": {
276 // "checkOnSave": {
277 // "command": "clippy"
278 // }
279 // }
280 // }
281 }
282}