fix(nvim): add cpp compile flags for clangd
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-08 00:19:59 -05:00
parent 1e94cd9d0a
commit 9f85988d6a

View file

@ -5,10 +5,15 @@
... ...
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
inherit (pkgs.writers) writeYAML;
cfg = config.programs.neovim; cfg = config.programs.neovim;
in in
mkIf cfg.enableIde { mkIf cfg.enableIde {
xdg.configFile."clangd/config.yaml".source = writeYAML "config.yaml" {
CompileFlags.Add = ["-D__cpp_concepts=202002L"];
};
programs = { programs = {
neovim = { neovim = {
extraPackages = builtins.attrValues { extraPackages = builtins.attrValues {