diff --git a/modules/nixos/apps/neovim/default.nix b/modules/nixos/apps/neovim/default.nix index 373795a..fda4dd6 100644 --- a/modules/nixos/apps/neovim/default.nix +++ b/modules/nixos/apps/neovim/default.nix @@ -157,6 +157,16 @@ in { "rootPatterns" = ["flake.nix"]; "filetypes" = ["nix"]; }; + "ccls" = { + "command" = "ccls"; + "filetypes" = ["c" "cc" "cpp" "c++" "cobjc" "objcpp"]; + "rootPatterns" = [".ccls" "compile_commands.json" ".git/"]; + "initializationOptions" = { + "cache" = { + "directory" = "/tmp/ccls"; + }; + }; + }; }; };