Skip to content

Commit

Permalink
Disable Prettier for C projects by default (zed-industries#23119)
Browse files Browse the repository at this point in the history
Follow-up of zed-industries#23112

Same reasoning applies.

Release Notes:

- Changed default formatter for C to be the primary language server, not
Prettier. Format-on-save is still disabled by default for C, but if one
uses the editor: format command now, it will default to the language
server. clangd can format C files, whereas prettier cannot.
  • Loading branch information
SomeoneToIgnore authored Jan 14, 2025
1 parent fcadd3e commit 8e65ec1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/settings/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,10 @@
},
"C": {
"format_on_save": "off",
"use_on_type_format": false
"use_on_type_format": false,
"prettier": {
"allowed": false
}
},
"C++": {
"format_on_save": "off",
Expand Down

0 comments on commit 8e65ec1

Please sign in to comment.