2022-07-12 21:00:02 +03:00
|
|
|
{
|
2023-04-20 14:08:30 +03:00
|
|
|
// The name of the Zed theme to use for the UI
|
|
|
|
"theme": "One Dark",
|
2023-05-17 21:23:09 +03:00
|
|
|
// The name of a base set of key bindings to use.
|
|
|
|
// This setting can take four values, each named after another
|
|
|
|
// text editor:
|
|
|
|
//
|
|
|
|
// 1. "VSCode"
|
|
|
|
// 2. "JetBrains"
|
|
|
|
// 3. "SublimeText"
|
|
|
|
// 4. "Atom"
|
|
|
|
"base_keymap": "VSCode",
|
2023-04-20 14:08:30 +03:00
|
|
|
// Features that can be globally enabled or disabled
|
|
|
|
"features": {
|
|
|
|
// Show Copilot icon in status bar
|
|
|
|
"copilot": true
|
|
|
|
},
|
|
|
|
// The name of a font to use for rendering text in the editor
|
|
|
|
"buffer_font_family": "Zed Mono",
|
|
|
|
// The OpenType features to enable for text in the editor.
|
|
|
|
"buffer_font_features": {
|
|
|
|
// Disable ligatures:
|
|
|
|
// "calt": false
|
|
|
|
},
|
|
|
|
// The default font size for text in the editor
|
|
|
|
"buffer_font_size": 15,
|
|
|
|
// The factor to grow the active pane by. Defaults to 1.0
|
|
|
|
// which gives the same size as all other panes.
|
|
|
|
"active_pane_magnification": 1.0,
|
|
|
|
// Whether to enable vim modes and key bindings
|
|
|
|
"vim_mode": false,
|
|
|
|
// Whether to show the informational hover box when moving the mouse
|
|
|
|
// over symbols in the editor.
|
|
|
|
"hover_popover_enabled": true,
|
|
|
|
// Whether to confirm before quitting Zed.
|
|
|
|
"confirm_quit": false,
|
|
|
|
// Whether the cursor blinks in the editor.
|
|
|
|
"cursor_blink": true,
|
|
|
|
// Whether to pop the completions menu while typing in an editor without
|
|
|
|
// explicitly requesting it.
|
|
|
|
"show_completions_on_input": true,
|
2023-05-23 17:50:50 +03:00
|
|
|
// Whether to use additional LSP queries to format (and amend) the code after
|
|
|
|
// every "trigger" symbol input, defined by LSP server capabilities.
|
|
|
|
"use_on_type_format": true,
|
2023-04-20 14:08:30 +03:00
|
|
|
// Controls whether copilot provides suggestion immediately
|
|
|
|
// or waits for a `copilot::Toggle`
|
|
|
|
"show_copilot_suggestions": true,
|
2023-05-04 14:43:50 +03:00
|
|
|
// Whether to show tabs and spaces in the editor.
|
|
|
|
// This setting can take two values:
|
|
|
|
//
|
2023-05-05 00:36:31 +03:00
|
|
|
// 1. Draw tabs and spaces only for the selected text (default):
|
|
|
|
// "selection"
|
|
|
|
// 2. Do not draw any tabs or spaces:
|
2023-05-04 14:43:50 +03:00
|
|
|
// "none"
|
2023-05-05 00:36:31 +03:00
|
|
|
// 3. Draw all invisible symbols:
|
2023-05-04 14:43:50 +03:00
|
|
|
// "all"
|
2023-05-05 14:30:16 +03:00
|
|
|
"show_whitespaces": "selection",
|
2023-05-22 22:12:56 +03:00
|
|
|
// Scrollbar related settings
|
|
|
|
"scrollbar": {
|
|
|
|
// When to show the scrollbar in the editor.
|
|
|
|
// This setting can take four values:
|
|
|
|
//
|
|
|
|
// 1. Show the scrollbar if there's important information or
|
|
|
|
// follow the system's configured behavior (default):
|
|
|
|
// "auto"
|
|
|
|
// 2. Match the system's configured behavior:
|
|
|
|
// "system"
|
|
|
|
// 3. Always show the scrollbar:
|
|
|
|
// "always"
|
|
|
|
// 4. Never show the scrollbar:
|
|
|
|
// "never"
|
2023-05-22 22:16:47 +03:00
|
|
|
"show": "auto",
|
2023-05-22 22:12:56 +03:00
|
|
|
// Whether to show git diff indicators in the scrollbar.
|
|
|
|
"git_diff": true
|
|
|
|
},
|
2023-05-23 06:23:07 +03:00
|
|
|
"project_panel": {
|
|
|
|
// Whether to show the git status in the project panel.
|
2023-05-23 09:24:28 +03:00
|
|
|
"git_status": true,
|
|
|
|
// Where to dock project panel. Can be 'left' or 'right'.
|
|
|
|
"dock": "left",
|
|
|
|
// Default width of the project panel.
|
|
|
|
"default_width": 240
|
2023-05-23 06:23:07 +03:00
|
|
|
},
|
2023-06-02 11:55:19 +03:00
|
|
|
"assistant": {
|
|
|
|
// Where to dock the assistant. Can be 'left', 'right' or 'bottom'.
|
|
|
|
"dock": "right",
|
|
|
|
// Default width when the assistant is docked to the left or right.
|
2023-06-02 12:38:02 +03:00
|
|
|
"default_width": 450,
|
2023-06-02 11:55:19 +03:00
|
|
|
// Default height when the assistant is docked to the bottom.
|
2023-06-02 13:15:25 +03:00
|
|
|
"default_height": 320
|
2023-06-02 11:55:19 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
// Whether the screen sharing icon is shown in the os status bar.
|
|
|
|
"show_call_status_icon": true,
|
|
|
|
// Whether to use language servers to provide code intelligence.
|
|
|
|
"enable_language_server": true,
|
|
|
|
// When to automatically save edited buffers. This setting can
|
|
|
|
// take four values.
|
|
|
|
//
|
|
|
|
// 1. Never automatically save:
|
|
|
|
// "autosave": "off",
|
|
|
|
// 2. Save when changing focus away from the Zed window:
|
|
|
|
// "autosave": "on_window_change",
|
|
|
|
// 3. Save when changing focus away from a specific buffer:
|
|
|
|
// "autosave": "on_focus_change",
|
|
|
|
// 4. Save when idle for a certain amount of time:
|
|
|
|
// "autosave": { "after_delay": {"milliseconds": 500} },
|
|
|
|
"autosave": "off",
|
|
|
|
// Whether or not to remove any trailing whitespace from lines of a buffer
|
|
|
|
// before saving it.
|
|
|
|
"remove_trailing_whitespace_on_save": true,
|
2023-06-13 19:59:46 +03:00
|
|
|
// Whether to start a new line with a comment when a previous line is a comment as well.
|
|
|
|
"extend_comment_on_newline": true,
|
2023-04-20 14:08:30 +03:00
|
|
|
// Whether or not to ensure there's a single newline at the end of a buffer
|
|
|
|
// when saving it.
|
|
|
|
"ensure_final_newline_on_save": true,
|
|
|
|
// Whether or not to perform a buffer format before saving
|
|
|
|
"format_on_save": "on",
|
|
|
|
// How to perform a buffer format. This setting can take two values:
|
|
|
|
//
|
|
|
|
// 1. Format code using the current language server:
|
2023-06-09 09:08:07 +03:00
|
|
|
// "formatter": "language_server"
|
2023-04-20 14:08:30 +03:00
|
|
|
// 2. Format code using an external command:
|
2023-06-09 09:08:07 +03:00
|
|
|
// "formatter": {
|
2023-04-20 14:08:30 +03:00
|
|
|
// "external": {
|
|
|
|
// "command": "prettier",
|
|
|
|
// "arguments": ["--stdin-filepath", "{buffer_path}"]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
"formatter": "language_server",
|
|
|
|
// How to soft-wrap long lines of text. This setting can take
|
|
|
|
// three values:
|
|
|
|
//
|
|
|
|
// 1. Do not soft wrap.
|
|
|
|
// "soft_wrap": "none",
|
|
|
|
// 2. Soft wrap lines that overflow the editor:
|
|
|
|
// "soft_wrap": "editor_width",
|
|
|
|
// 3. Soft wrap lines at the preferred line length
|
|
|
|
// "soft_wrap": "preferred_line_length",
|
|
|
|
"soft_wrap": "none",
|
|
|
|
// The column at which to soft-wrap lines, for buffers where soft-wrap
|
|
|
|
// is enabled.
|
|
|
|
"preferred_line_length": 80,
|
|
|
|
// Whether to indent lines using tab characters, as opposed to multiple
|
|
|
|
// spaces.
|
|
|
|
"hard_tabs": false,
|
|
|
|
// How many columns a tab should occupy.
|
|
|
|
"tab_size": 4,
|
|
|
|
// Control what info is collected by Zed.
|
|
|
|
"telemetry": {
|
|
|
|
// Send debug info like crash reports.
|
|
|
|
"diagnostics": true,
|
|
|
|
// Send anonymized usage data like what languages you're using Zed with.
|
|
|
|
"metrics": true
|
|
|
|
},
|
|
|
|
// Automatically update Zed
|
|
|
|
"auto_update": true,
|
|
|
|
// Git gutter behavior configuration.
|
|
|
|
"git": {
|
|
|
|
// Control whether the git gutter is shown. May take 2 values:
|
|
|
|
// 1. Show the gutter
|
|
|
|
// "git_gutter": "tracked_files"
|
|
|
|
// 2. Hide the gutter
|
|
|
|
// "git_gutter": "hide"
|
|
|
|
"git_gutter": "tracked_files"
|
|
|
|
},
|
2023-04-28 04:06:52 +03:00
|
|
|
"copilot": {
|
|
|
|
// The set of glob patterns for which copilot should be disabled
|
|
|
|
// in any matching file.
|
|
|
|
"disabled_globs": [
|
|
|
|
".env"
|
|
|
|
]
|
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
// Settings specific to journaling
|
|
|
|
"journal": {
|
|
|
|
// The path of the directory where journal entries are stored
|
|
|
|
"path": "~",
|
|
|
|
// What format to display the hours in
|
|
|
|
// May take 2 values:
|
|
|
|
// 1. hour12
|
|
|
|
// 2. hour24
|
|
|
|
"hour_format": "hour12"
|
|
|
|
},
|
|
|
|
// Settings specific to the terminal
|
|
|
|
"terminal": {
|
|
|
|
// What shell to use when opening a terminal. May take 3 values:
|
|
|
|
// 1. Use the system's default terminal configuration in /etc/passwd
|
|
|
|
// "shell": "system"
|
|
|
|
// 2. A program:
|
|
|
|
// "shell": {
|
|
|
|
// "program": "sh"
|
|
|
|
// }
|
|
|
|
// 3. A program with arguments:
|
|
|
|
// "shell": {
|
|
|
|
// "with_arguments": {
|
|
|
|
// "program": "/bin/bash",
|
|
|
|
// "arguments": ["--login"]
|
|
|
|
// }
|
2022-10-26 03:24:19 +03:00
|
|
|
// }
|
2023-04-20 14:08:30 +03:00
|
|
|
"shell": "system",
|
2023-05-10 02:26:54 +03:00
|
|
|
// Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
|
|
|
|
"dock": "bottom",
|
2023-05-22 14:52:50 +03:00
|
|
|
// Default width when the terminal is docked to the left or right.
|
|
|
|
"default_width": 640,
|
|
|
|
// Default height when the terminal is docked to the bottom.
|
|
|
|
"default_height": 320,
|
2023-04-20 14:08:30 +03:00
|
|
|
// What working directory to use when launching the terminal.
|
|
|
|
// May take 4 values:
|
|
|
|
// 1. Use the current file's project directory. Will Fallback to the
|
|
|
|
// first project directory strategy if unsuccessful
|
|
|
|
// "working_directory": "current_project_directory"
|
|
|
|
// 2. Use the first project in this workspace's directory
|
|
|
|
// "working_directory": "first_project_directory"
|
|
|
|
// 3. Always use this platform's home directory (if we can find it)
|
|
|
|
// "working_directory": "always_home"
|
|
|
|
// 4. Always use a specific directory. This value will be shell expanded.
|
|
|
|
// If this path is not a valid directory the terminal will default to
|
|
|
|
// this platform's home directory (if we can find it)
|
|
|
|
// "working_directory": {
|
|
|
|
// "always": {
|
|
|
|
// "directory": "~/zed/projects/"
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
2022-10-26 03:24:19 +03:00
|
|
|
//
|
2023-04-20 14:08:30 +03:00
|
|
|
"working_directory": "current_project_directory",
|
|
|
|
// Set the cursor blinking behavior in the terminal.
|
|
|
|
// May take 4 values:
|
|
|
|
// 1. Never blink the cursor, ignoring the terminal mode
|
|
|
|
// "blinking": "off",
|
|
|
|
// 2. Default the cursor blink to off, but allow the terminal to
|
|
|
|
// set blinking
|
|
|
|
// "blinking": "terminal_controlled",
|
|
|
|
// 3. Always blink the cursor, ignoring the terminal mode
|
|
|
|
// "blinking": "on",
|
|
|
|
"blinking": "terminal_controlled",
|
|
|
|
// Set whether Alternate Scroll mode (code: ?1007) is active by default.
|
|
|
|
// Alternate Scroll mode converts mouse scroll events into up / down key
|
|
|
|
// presses when in the alternate screen (e.g. when running applications
|
|
|
|
// like vim or less). The terminal can still set and unset this mode.
|
|
|
|
// May take 2 values:
|
|
|
|
// 1. Default alternate scroll mode to on
|
|
|
|
// "alternate_scroll": "on",
|
|
|
|
// 2. Default alternate scroll mode to off
|
|
|
|
// "alternate_scroll": "off",
|
|
|
|
"alternate_scroll": "off",
|
|
|
|
// Set whether the option key behaves as the meta key.
|
|
|
|
// May take 2 values:
|
|
|
|
// 1. Rely on default platform handling of option key, on macOS
|
|
|
|
// this means generating certain unicode characters
|
|
|
|
// "option_to_meta": false,
|
|
|
|
// 2. Make the option keys behave as a 'meta' key, e.g. for emacs
|
|
|
|
// "option_to_meta": true,
|
|
|
|
"option_as_meta": false,
|
|
|
|
// Whether or not selecting text in the terminal will automatically
|
|
|
|
// copy to the system clipboard.
|
|
|
|
"copy_on_select": false,
|
|
|
|
// Any key-value pairs added to this list will be added to the terminal's
|
2023-06-03 05:02:19 +03:00
|
|
|
// environment. Use `:` to separate multiple values.
|
2023-04-20 14:08:30 +03:00
|
|
|
"env": {
|
|
|
|
// "KEY": "value1:value2"
|
2023-01-11 02:06:48 +03:00
|
|
|
},
|
2023-04-21 03:26:32 +03:00
|
|
|
// Set the terminal's line height.
|
|
|
|
// May take 3 values:
|
|
|
|
// 1. Use a line height that's comfortable for reading, 1.618
|
|
|
|
// "line_height": "comfortable"
|
|
|
|
// 2. Use a standard line height, 1.3. This option is useful for TUIs,
|
|
|
|
// particularly if they use box characters
|
|
|
|
// "line_height": "standard",
|
|
|
|
// 3. Use a custom line height.
|
2023-04-21 03:34:47 +03:00
|
|
|
// "line_height": {
|
|
|
|
// "custom": 2
|
|
|
|
// },
|
|
|
|
//
|
2023-04-21 03:26:32 +03:00
|
|
|
"line_height": "comfortable"
|
2023-04-20 14:08:30 +03:00
|
|
|
// Set the terminal's font size. If this option is not included,
|
|
|
|
// the terminal will default to matching the buffer's font size.
|
|
|
|
// "font_size": "15"
|
|
|
|
// Set the terminal's font family. If this option is not included,
|
|
|
|
// the terminal will default to matching the buffer's font family.
|
|
|
|
// "font_family": "Zed Mono"
|
|
|
|
},
|
|
|
|
// Different settings for specific languages.
|
|
|
|
"languages": {
|
|
|
|
"Plain Text": {
|
|
|
|
"soft_wrap": "preferred_line_length"
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"Elixir": {
|
|
|
|
"tab_size": 2
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"Go": {
|
|
|
|
"tab_size": 4,
|
|
|
|
"hard_tabs": true
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"Markdown": {
|
|
|
|
"soft_wrap": "preferred_line_length"
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"JavaScript": {
|
|
|
|
"tab_size": 2
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"TypeScript": {
|
|
|
|
"tab_size": 2
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"TSX": {
|
|
|
|
"tab_size": 2
|
2022-10-20 22:31:17 +03:00
|
|
|
},
|
2023-04-20 14:08:30 +03:00
|
|
|
"YAML": {
|
|
|
|
"tab_size": 2
|
|
|
|
},
|
|
|
|
"JSON": {
|
|
|
|
"tab_size": 2
|
2022-08-10 19:11:06 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
},
|
|
|
|
// LSP Specific settings.
|
|
|
|
"lsp": {
|
|
|
|
// Specify the LSP name as a key here.
|
|
|
|
// As of 8/10/22, supported LSPs are:
|
|
|
|
// pyright
|
|
|
|
// gopls
|
|
|
|
// rust-analyzer
|
|
|
|
// typescript-language-server
|
|
|
|
// vscode-json-languageserver
|
|
|
|
// "rust-analyzer": {
|
|
|
|
// //These initialization options are merged into Zed's defaults
|
|
|
|
// "initialization_options": {
|
|
|
|
// "checkOnSave": {
|
|
|
|
// "command": "clippy"
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|
2022-07-12 21:00:02 +03:00
|
|
|
}
|