fix(nvim): add cpp compile flags for clangd
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
1e94cd9d0a
commit
9f85988d6a
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue