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 // Git gutter behavior configuration.
83 "git": {
84 // Control whether the git gutter is shown. May take 2 values:
85 // 1. Show the gutter
86 // "git_gutter": "tracked_files"
87 // 2. Hide the gutter
88 // "git_gutter": "hide"
89 "git_gutter": "tracked_files"
90 },
91 // Settings specific to journaling
92 "journal": {
93 // The path of the directory where journal entries are stored
94 "path": "~",
95 // What format to display the hours in
96 // May take 2 values:
97 // 1. hour12
98 // 2. hour24
99 "hour_format": "hour12"
100 },
101 // Settings specific to the terminal
102 "terminal": {
103 // What shell to use when opening a terminal. May take 3 values:
104 // 1. Use the system's default terminal configuration (e.g. $TERM).
105 // "shell": "system"
106 // 2. A program:
107 // "shell": {
108 // "program": "sh"
109 // }
110 // 3. A program with arguments:
111 // "shell": {
112 // "with_arguments": {
113 // "program": "/bin/bash",
114 // "arguments": ["--login"]
115 // }
116 // }
117 "shell": "system",
118 // What working directory to use when launching the terminal.
119 // May take 4 values:
120 // 1. Use the current file's project directory. Will Fallback to the
121 // first project directory strategy if unsuccessful
122 // "working_directory": "current_project_directory"
123 // 2. Use the first project in this workspace's directory
124 // "working_directory": "first_project_directory"
125 // 3. Always use this platform's home directory (if we can find it)
126 // "working_directory": "always_home"
127 // 4. Always use a specific directory. This value will be shell expanded.
128 // If this path is not a valid directory the terminal will default to
129 // this platform's home directory (if we can find it)
130 // "working_directory": {
131 // "always": {
132 // "directory": "~/zed/projects/"
133 // }
134 // }
135 //
136 //
137 "working_directory": "current_project_directory",
138 // Set the cursor blinking behavior in the terminal.
139 // May take 4 values:
140 // 1. Never blink the cursor, ignoring the terminal mode
141 // "blinking": "off",
142 // 2. Default the cursor blink to off, but allow the terminal to
143 // set blinking
144 // "blinking": "terminal_controlled",
145 // 3. Always blink the cursor, ignoring the terminal mode
146 // "blinking": "on",
147 "blinking": "terminal_controlled",
148 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
149 // Alternate Scroll mode converts mouse scroll events into up / down key
150 // presses when in the alternate screen (e.g. when running applications
151 // like vim or less). The terminal can still set and unset this mode.
152 // May take 2 values:
153 // 1. Default alternate scroll mode to on
154 // "alternate_scroll": "on",
155 // 2. Default alternate scroll mode to off
156 // "alternate_scroll": "off",
157 "alternate_scroll": "off",
158 // Set whether the option key behaves as the meta key.
159 // May take 2 values:
160 // 1. Rely on default platform handling of option key, on macOS
161 // this means generating certain unicode characters
162 // "option_to_meta": false,
163 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
164 // "option_to_meta": true,
165 "option_as_meta": false,
166 // Whether or not selecting text in the terminal will automatically
167 // copy to the system clipboard.
168 "copy_on_select": false,
169 // Any key-value pairs added to this list will be added to the terminal's
170 // enviroment. Use `:` to seperate multiple values.
171 "env": {
172 // "KEY": "value1:value2"
173 }
174 // Set the terminal's font size. If this option is not included,
175 // the terminal will default to matching the buffer's font size.
176 // "font_size": "15"
177 // Set the terminal's font family. If this option is not included,
178 // the terminal will default to matching the buffer's font family.
179 // "font_family": "Zed Mono"
180 },
181 // Different settings for specific languages.
182 "languages": {
183 "Plain Text": {
184 "soft_wrap": "preferred_line_length"
185 },
186 "C": {
187 "tab_size": 2
188 },
189 "C++": {
190 "tab_size": 2
191 },
192 "Elixir": {
193 "tab_size": 2
194 },
195 "Go": {
196 "tab_size": 4,
197 "hard_tabs": true
198 },
199 "Markdown": {
200 "soft_wrap": "preferred_line_length"
201 },
202 "Rust": {
203 "tab_size": 4
204 },
205 "JavaScript": {
206 "tab_size": 2
207 },
208 "TypeScript": {
209 "tab_size": 2
210 },
211 "TSX": {
212 "tab_size": 2
213 }
214 },
215 // LSP Specific settings.
216 "lsp": {
217 // Specify the LSP name as a key here.
218 // As of 8/10/22, supported LSPs are:
219 // pyright
220 // gopls
221 // rust-analyzer
222 // typescript-language-server
223 // vscode-json-languageserver
224 // "rust_analyzer": {
225 // //These initialization options are merged into Zed's defaults
226 // "initialization_options": {
227 // "checkOnSave": {
228 // "command": "clippy"
229 // }
230 // }
231 // }
232 }
233}