From 427ca284f15f3b62bc490a4b20532a640ef3f1b5 Mon Sep 17 00:00:00 2001 From: Valtteri Koskivuori Date: Tue, 14 Nov 2023 19:30:22 +0200 Subject: [PATCH] Documentation: Update Helix editor documentation Helix 23.10 made breaking changes to the way lsp configuration works, so update documentation to reflect the new structure. --- Documentation/HelixConfiguration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/HelixConfiguration.md b/Documentation/HelixConfiguration.md index baf5117572..54dda231f8 100644 --- a/Documentation/HelixConfiguration.md +++ b/Documentation/HelixConfiguration.md @@ -10,9 +10,13 @@ CompileFlags: You also need to configure the clangd server to detect headers properly from the Serenity toolchain. To do this, create a `.helix/languages.toml` file in the project root: ```toml +[language-server.serenity] +command = "clangd" +args = ["--query-driver=/path/to/serenity/Toolchain/Local/**/*", "--header-insertion=never"] + [[language]] name = "cpp" -language-server = { command = "clangd", args=["--query-driver=/path/to/serenity/Toolchain/Local/**/*", "--header-insertion=never"] } +language-servers = ["serenity"] ``` > Make sure to replace `/path/to/serenity` with the actual path in the snippet above!