Skip to content

Commit

Permalink
Fix to apply dprint formatter for markdown in zed
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 15, 2024
1 parent bc71a4f commit ca54fdd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .zed/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"formatter": {
"external": {
// TODO: Apply dprint for markdown files. That didn't work only in zed :<
"command": "dprint",
"arguments": ["fmt", "--stdin", "{buffer_path}"]
}
},
"languages": {
"Markdown": {
// Disabled by default in markdown: https://github.com/zed-industries/zed/blob/684d9dde5681504d8fe53ffe450c94902b3fa45b/assets/settings/default.json#L781
"format_on_save": "on",
// Without this, muliti-line ending trims over escaping
"remove_trailing_whitespace_on_save": false
},
"Nix": {
"formatter": {
"external": {
Expand Down

0 comments on commit ca54fdd

Please sign in to comment.