default.json

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