cpp: Enable language server as formatter by default (#23112)

As @hferreiro points out in [this

comment](https://github.com/zed-industries/zed/pull/18752#issuecomment-2589340565):
C++ and prettier don't work well together, so let's make the default
formatter for C++ the primary language server. We get that by disabling
prettier.

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.
This commit is contained in:
Thorsten Ball 2025-01-14 10:56:57 +01:00 committed by GitHub
parent a13e64e0cd
commit fcadd3e1ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -978,7 +978,10 @@
},
"C++": {
"format_on_save": "off",
"use_on_type_format": false
"use_on_type_format": false,
"prettier": {
"allowed": false
}
},
"CSS": {
"prettier": {