|
1 | 1 | { |
2 | | - // Whether or not to remove any trailing whitespace from lines of a buffer |
3 | | - // before saving it. |
4 | 2 | "remove_trailing_whitespace_on_save": true, |
5 | | - // Whether to start a new line with a comment when a previous line is a comment as well. |
6 | 3 | "extend_comment_on_newline": true, |
7 | | - // Removes any lines containing only whitespace at the end of the file and |
8 | | - // ensures just one newline at the end. |
9 | 4 | "ensure_final_newline_on_save": true, |
10 | | - // Whether or not to perform a buffer format before saving |
11 | | - // |
12 | | - // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored |
13 | 5 | "format_on_save": "on", |
14 | | - // How to perform a buffer format. This setting can take 4 values: |
15 | | - // |
16 | | - // 1. Format code using the current language server: |
17 | | - // "formatter": "language_server" |
18 | | - // 2. Format code using an external command: |
19 | | - // "formatter": { |
20 | | - // "external": { |
21 | | - // "command": "prettier", |
22 | | - // "arguments": ["--stdin-filepath", "{buffer_path}"] |
23 | | - // } |
24 | | - // } |
25 | | - // 3. Format code using Zed's Prettier integration: |
26 | | - // "formatter": "prettier" |
27 | | - // 4. Default. Format files using Zed's Prettier integration (if applicable), |
28 | | - // or falling back to formatting via language server: |
29 | | - // "formatter": "auto" |
30 | 6 | "formatter": { |
31 | 7 | "external": { |
32 | 8 | "command": "node_modules/.bin/dprint", |
|
37 | 13 | ] |
38 | 14 | } |
39 | 15 | }, |
40 | | - // How to soft-wrap long lines of text. |
41 | | - // Possible values: |
42 | | - // |
43 | | - // 1. Prefer a single line generally, unless an overly long line is encountered. |
44 | | - // "soft_wrap": "none", |
45 | | - // "soft_wrap": "prefer_line", // (deprecated, same as "none") |
46 | | - // 2. Soft wrap lines that overflow the editor. |
47 | | - // "soft_wrap": "editor_width", |
48 | | - // 3. Soft wrap lines at the preferred line length. |
49 | | - // "soft_wrap": "preferred_line_length", |
50 | | - // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller). |
51 | | - // "soft_wrap": "bounded", |
52 | | - "soft_wrap": "none", |
53 | | - // The column at which to soft-wrap lines, for buffers where soft-wrap |
54 | | - // is enabled. |
| 16 | + "soft_wrap": "editor_width", |
55 | 17 | "preferred_line_length": 120, |
56 | 18 | "prettier": { |
57 | 19 | "allowed": false |
|
0 commit comments