Skip to content

Commit b1de8c8

Browse files
committed
chore: update VSCode and Zed settings for formatting and diagnostics
1 parent 538da86 commit b1de8c8

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

.vscode/settings.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,14 @@
33
"editor.defaultFormatter": "dprint.dprint"
44
},
55
"[jsonc]": {
6-
"editor.defaultFormatter": "vscode.json-language-features"
6+
"editor.defaultFormatter": "dprint.dprint"
77
},
88
"[typescript]": {
99
"editor.defaultFormatter": "dprint.dprint"
1010
},
11-
"[yaml]": {
12-
"diffEditor.ignoreTrimWhitespace": false,
13-
"editor.autoIndent": "keep",
14-
"editor.defaultFormatter": "dprint.dprint",
15-
"editor.insertSpaces": true,
16-
"editor.tabSize": 2
17-
},
1811
"editor.codeActionsOnSave": {
1912
"source.formatting": "explicit",
20-
"source.fixAll": "explicit",
13+
"source.fixAll": "never",
2114
"source.fixAll.eslint": "explicit",
2215
"source.organizeImports": "never"
2316
},

.zed/settings.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,32 @@
5555
"preferred_line_length": 120,
5656
"prettier": {
5757
"allowed": false
58+
},
59+
"diagnostics": {
60+
"inline": {
61+
"enabled": true,
62+
"update_debounce_ms": 150
63+
}
64+
},
65+
"file_types": {
66+
"Markdown": [
67+
"md",
68+
"mdx"
69+
]
70+
},
71+
"languages": {
72+
"Markdown": {
73+
"format_on_save": "on",
74+
"formatter": {
75+
"external": {
76+
"command": "node_modules/.bin/dprint",
77+
"arguments": [
78+
"fmt",
79+
"--stdin",
80+
"{buffer_path}"
81+
]
82+
}
83+
}
84+
}
5885
}
5986
}

0 commit comments

Comments
 (0)