mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 02:46:43 +00:00
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:
parent
a13e64e0cd
commit
fcadd3e1ff
1 changed files with 4 additions and 1 deletions
|
@ -978,7 +978,10 @@
|
|||
},
|
||||
"C++": {
|
||||
"format_on_save": "off",
|
||||
"use_on_type_format": false
|
||||
"use_on_type_format": false,
|
||||
"prettier": {
|
||||
"allowed": false
|
||||
}
|
||||
},
|
||||
"CSS": {
|
||||
"prettier": {
|
||||
|
|
Loading…
Reference in a new issue