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