Skip to content

Commit

Permalink
Add Zed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Jan 8, 2025
1 parent e7b0ef1 commit ccf4e9d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repos:
- id: trailing-whitespace
exclude: ".min."
- id: check-json
exclude: ".zed"
- id: check-toml
- id: check-xml
- id: check-yaml
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore all HTML files:
totem/**/*.css
.zed/**/*
*.min.*
*.mjml
totem/static/js/bundles/*
totem/static/js/bundles/*
32 changes: 32 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Folder-specific settings
//
// For a full list of overridable settings, and general information on folder-specific settings,
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
{
"languages": {
"HTML": {
"formatter": {
"external": {
"command": "./node_modules/.bin/prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
},
"JavaScript": {
"formatter": {
"external": {
"command": "./node_modules/.bin/prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
},
"TypeScript": {
"formatter": {
"external": {
"command": "./node_modules/.bin/prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
}
}
}

0 comments on commit ccf4e9d

Please sign in to comment.