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