2023-06-02 23:04:11 +00:00
# Helix Configuration
2024-05-30 21:06:21 +00: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-02 23:04:11 +00:00
The following `.clangd` should be placed in the project root:
```yaml
CompileFlags:
2024-06-03 21:46:00 +00:00
CompilationDatabase: Build/ladybird
2024-02-05 11:28:11 +00:00
Diagnostics:
UnusedIncludes: None
MissingIncludes: None
2023-06-02 23:04:11 +00:00
```
2024-05-31 23:27:20 +00: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-02 23:04:11 +00:00
```toml
2024-05-31 23:27:20 +00:00
[language-server.ladybird]
2023-11-14 17:30:22 +00:00
command = "clangd"
2024-05-31 23:27:20 +00:00
args = ["--header-insertion=never"]
2023-11-14 17:30:22 +00:00
2023-06-02 23:04:11 +00:00
[[language]]
name = "cpp"
2024-05-31 23:27:20 +00:00
language-servers = ["ladybird"]
2023-06-02 23:04:11 +00:00
```