2023-06-03 02:04:11 +03:00
# Helix Configuration
2024-05-31 00:06:21 +03:00
Helix comes with support for `clangd` and `clang-format` out of the box! However, a small bit of configuration is needed for it to work correctly with Ladybird.
2023-06-03 02:04:11 +03:00
The following `.clangd` should be placed in the project root:
```yaml
CompileFlags:
2024-06-04 00:46:00 +03:00
CompilationDatabase: Build/ladybird
2024-02-05 14:28:11 +03:00
Diagnostics:
UnusedIncludes: None
MissingIncludes: None
2023-06-03 02:04:11 +03:00
```
2024-06-01 02:27:20 +03:00
You also need to configure the clangd server to not insert headers improperly. To do this, create a `.helix/languages.toml` file in the project root:
2023-06-03 02:04:11 +03:00
```toml
2024-06-01 02:27:20 +03:00
[language-server.ladybird]
2023-11-14 20:30:22 +03:00
command = "clangd"
2024-06-01 02:27:20 +03:00
args = ["--header-insertion=never"]
2023-11-14 20:30:22 +03:00
2023-06-03 02:04:11 +03:00
[[language]]
name = "cpp"
2024-06-01 02:27:20 +03:00
language-servers = ["ladybird"]
2023-06-03 02:04:11 +03:00
```