From a2f362c4999943e883c9a419d38a94e3ddee4d93 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Fri, 22 Mar 2024 22:43:07 -0700 Subject: [PATCH] Add ccls integration --- modules/nixos/apps/neovim/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"; + }; + }; + }; }; };