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