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