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