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