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