Skip to content

Commit 0fd178a

Browse files
Add configuration for Zed editor
Also move a config from VS Code settings to .editorconfig
1 parent c682e33 commit 0fd178a

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ root = true
33
[*]
44
end_of_line = lf
55
insert_final_newline = true
6+
trim_trailing_whitespace = true
67
indent_style = space
78
indent_size = 4
8-
charset = utf-8
9+
charset = utf-8

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"editor.defaultFormatter": "prettier.prettier-vscode",
3-
"files.trimTrailingWhitespace": true,
43
"editor.formatOnSave": true,
54
"files.exclude": {
65
"**/.git": true,

.zed/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"format_on_save": "on",
3+
"file_scan_exclusions": [
4+
"**/.git",
5+
"**/.DS_Store",
6+
"**/Thumbs.db",
7+
"node_modules",
8+
"build",
9+
"build_output"
10+
],
11+
"formatter": {
12+
"external": {
13+
"command": "npx",
14+
"arguments": ["prettier", "--stdin-filepath", "{buffer_path}"]
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)