From 8a7534a994810154f797d6d52382960cad78f982 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 21 Mar 2024 10:05:02 +0100 Subject: [PATCH 1/2] Replace clangd with ccls --- .gitignore | 4 ++-- flake.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 323e656..de05bd5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,5 @@ result result-* -# Clangd cache -.cache/clangd +# Ccls cache +.ccls-cache/ diff --git a/flake.nix b/flake.nix index 8a7617f..aa60bad 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ name = "3ds-devshell"; packages = with nixpkgs.legacyPackages.${system}; [ gnumake - clang-tools + ccls ( writeShellScriptBin "generateClangCompileCommands" '' make clean From 014fd67de3f653e3baa1fe52457a5720e5aecfea Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 21 Mar 2024 10:05:38 +0100 Subject: [PATCH 2/2] Configure helix to use ccls --- .helix/languages.toml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .helix/languages.toml diff --git a/.helix/languages.toml b/.helix/languages.toml new file mode 100644 index 0000000..cf31b68 --- /dev/null +++ b/.helix/languages.toml @@ -0,0 +1,6 @@ +[[language]] +name = "c" +language-servers = [ "ccls" ] + +[language-server.ccls] +command = "ccls"