From 9f85988d6a380a0e32d86d2b5a0eb0c8fb23cafa Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 8 Dec 2024 00:19:59 -0500 Subject: [PATCH] fix(nvim): add cpp compile flags for clangd --- homeManagerModules/neovim/langs/clang.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeManagerModules/neovim/langs/clang.nix b/homeManagerModules/neovim/langs/clang.nix index aea9c6e3..6f8186f9 100644 --- a/homeManagerModules/neovim/langs/clang.nix +++ b/homeManagerModules/neovim/langs/clang.nix @@ -5,10 +5,15 @@ ... }: let inherit (lib) mkIf; + inherit (pkgs.writers) writeYAML; cfg = config.programs.neovim; in mkIf cfg.enableIde { + xdg.configFile."clangd/config.yaml".source = writeYAML "config.yaml" { + CompileFlags.Add = ["-D__cpp_concepts=202002L"]; + }; + programs = { neovim = { extraPackages = builtins.attrValues {