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/.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" 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