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