docs: Fix typos in language configurations (#37740)

Fixes several typos in the docs. I think there are more but I have only
read what I actually needed :)

Release Notes:

- N/A
This commit is contained in:
HE7086
2025-09-08 08:44:46 +00:00
committed by GitHub
parent 7ae8f81d74
commit d342da4e9a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -8,14 +8,14 @@ C support is available natively in Zed.
## Clangd: Force detect as C
Clangd out of the box assumes mixed C++/C projects. If you have a C-only project you may wish to instruct clangd to all files as C using the `-xc` flag. To do this, create a `.clangd` file in the root of your project with the following:
Clangd out of the box assumes mixed C++/C projects. If you have a C-only project you may wish to instruct clangd to treat all files as C using the `-xc` flag. To do this, create a `.clangd` file in the root of your project with the following:
```yaml
CompileFlags:
Add: [-xc]
```
By default clang and gcc by will recognize `*.C` and `*.H` (uppercase extensions) as C++ and not C and so Zed too follows this convention. If you are working with a C-only project (perhaps one with legacy uppercase pathing like `FILENAME.C`) you can override this behavior by adding this to your settings:
By default clang and gcc will recognize `*.C` and `*.H` (uppercase extensions) as C++ and not C and so Zed too follows this convention. If you are working with a C-only project (perhaps one with legacy uppercase pathing like `FILENAME.C`) you can override this behavior by adding this to your settings:
```json
{