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