2022-07-12 21:00:02 +03:00
|
|
|
{
|
2022-07-12 23:38:24 +03:00
|
|
|
// The name of the Zed theme to use for the UI
|
2022-07-12 21:35:19 +03:00
|
|
|
"theme": "cave-dark",
|
2022-07-12 23:38:24 +03:00
|
|
|
// The name of a font to use for rendering text in the editor
|
2022-07-12 21:00:02 +03:00
|
|
|
"buffer_font_family": "Zed Mono",
|
2022-07-12 23:38:24 +03:00
|
|
|
// The default font size for text in the editor
|
2022-07-12 21:00:02 +03:00
|
|
|
"buffer_font_size": 15,
|
2022-07-12 23:38:24 +03:00
|
|
|
// Whether to enable vim modes and key bindings
|
2022-07-12 21:00:02 +03:00
|
|
|
"vim_mode": false,
|
2022-07-12 23:38:24 +03:00
|
|
|
// Whether to show the informational hover box when moving the mouse
|
|
|
|
// over symbols in the editor.
|
2022-07-12 21:42:43 +03:00
|
|
|
"hover_popover_enabled": true,
|
2022-07-14 00:29:47 +03:00
|
|
|
// Whether to pop the completions menu while typing in an editor without
|
|
|
|
// explicitly requesting it.
|
|
|
|
"show_completions_on_input": true,
|
2022-07-12 23:38:24 +03:00
|
|
|
// Whether new projects should start out 'online'. Online projects
|
|
|
|
// appear in the contacts panel under your name, so that your contacts
|
|
|
|
// can see which projects you are working on. Regardless of this
|
|
|
|
// setting, projects keep their last online status when you reopen them.
|
2022-07-12 21:00:02 +03:00
|
|
|
"projects_online_by_default": true,
|
2022-07-12 23:38:24 +03:00
|
|
|
// Whether to use language servers to provide code intelligence.
|
2022-07-12 21:35:19 +03:00
|
|
|
"enable_language_server": true,
|
2022-07-12 23:38:24 +03:00
|
|
|
// 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} },
|
2022-07-12 21:42:43 +03:00
|
|
|
"autosave": "off",
|
2022-07-12 23:38:24 +03:00
|
|
|
// How to auto-format modified buffers when saving them. This
|
|
|
|
// setting can take three values:
|
|
|
|
//
|
|
|
|
// 1. Don't format code
|
|
|
|
// "format_on_save": "off"
|
|
|
|
// 2. Format code using the current language server:
|
|
|
|
// "format_on_save": "language_server"
|
|
|
|
// 3. Format code using an external command:
|
|
|
|
// "format_on_save": {
|
|
|
|
// "external": {
|
2022-07-15 10:00:10 +03:00
|
|
|
// "command": "prettier",
|
|
|
|
// "arguments": ["--stdin-filepath", "{buffer_path}"]
|
2022-07-12 23:38:24 +03:00
|
|
|
// }
|
2022-07-15 10:00:10 +03:00
|
|
|
// }
|
2022-07-12 21:35:19 +03:00
|
|
|
"format_on_save": "language_server",
|
2022-07-12 23:38:24 +03:00
|
|
|
// 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",
|
2022-07-16 04:27:10 +03:00
|
|
|
// 3. Soft wrap lines at the preferred line length
|
2022-07-12 23:38:24 +03:00
|
|
|
// "soft_wrap": "preferred_line_length",
|
2022-07-12 21:35:19 +03:00
|
|
|
"soft_wrap": "none",
|
2022-07-12 23:38:24 +03:00
|
|
|
// 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.
|
2022-07-12 21:35:19 +03:00
|
|
|
"hard_tabs": false,
|
2022-07-12 23:38:24 +03:00
|
|
|
// How many columns a tab should occupy.
|
2022-07-12 21:35:19 +03:00
|
|
|
"tab_size": 4,
|
2022-07-16 04:27:10 +03:00
|
|
|
// Settings specific to the terminal
|
|
|
|
"terminal": {
|
|
|
|
// What shell to use when opening a terminal. May take 3 values:
|
2022-07-16 04:42:07 +03:00
|
|
|
// 1. Use the system's default terminal configuration (e.g. $TERM).
|
2022-07-16 04:27:10 +03:00
|
|
|
// "shell": "system"
|
|
|
|
// 2. A program:
|
|
|
|
// "shell": {
|
|
|
|
// "program": "sh"
|
|
|
|
// }
|
|
|
|
// 3. A program with arguments:
|
|
|
|
// "shell": {
|
|
|
|
// "with_arguments": {
|
|
|
|
// "program": "/bin/bash",
|
|
|
|
// "arguments": ["--login"]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
"shell": "system",
|
|
|
|
// What working directory to use when launching the terminal.
|
|
|
|
// May take 4 values:
|
|
|
|
// 1. Use the current file's project directory.
|
|
|
|
// "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/"
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
"working_directory": "current_project_directory",
|
|
|
|
//Any key-value pairs added to this list will be added to the terminal's
|
|
|
|
//enviroment. Use `:` to seperate multiple values, not multiple list items
|
|
|
|
"env": [
|
|
|
|
//["KEY", "value1:value2"]
|
|
|
|
]
|
2022-07-16 04:42:07 +03:00
|
|
|
//Set the terminal's font size. If this option is not included,
|
2022-07-16 04:27:10 +03:00
|
|
|
//the terminal will default to matching the buffer's font size.
|
|
|
|
//"font_size": "15"
|
2022-07-16 04:42:07 +03:00
|
|
|
//Set the terminal's font family. If this option is not included,
|
2022-07-16 04:27:10 +03:00
|
|
|
//the terminal will default to matching the buffer's font family.
|
|
|
|
//"font_family": "Zed Mono"
|
|
|
|
},
|
2022-07-12 23:38:24 +03:00
|
|
|
// Different settings for specific languages.
|
2022-07-12 21:42:43 +03:00
|
|
|
"languages": {
|
2022-07-12 21:00:02 +03:00
|
|
|
"Plain Text": {
|
|
|
|
"soft_wrap": "preferred_line_length"
|
|
|
|
},
|
|
|
|
"C": {
|
|
|
|
"tab_size": 2
|
|
|
|
},
|
|
|
|
"C++": {
|
|
|
|
"tab_size": 2
|
|
|
|
},
|
|
|
|
"Go": {
|
|
|
|
"tab_size": 4,
|
|
|
|
"hard_tabs": true
|
|
|
|
},
|
|
|
|
"Markdown": {
|
|
|
|
"soft_wrap": "preferred_line_length"
|
|
|
|
},
|
|
|
|
"Rust": {
|
|
|
|
"tab_size": 4
|
|
|
|
},
|
|
|
|
"JavaScript": {
|
|
|
|
"tab_size": 2
|
|
|
|
},
|
|
|
|
"TypeScript": {
|
|
|
|
"tab_size": 2
|
|
|
|
},
|
|
|
|
"TSX": {
|
|
|
|
"tab_size": 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|