treewide: use mkAssertions wherever possible

This commit is contained in:
Gaetan Lepage 2025-01-20 14:23:55 +01:00
parent a7e516b322
commit af6e4b0bad
13 changed files with 63 additions and 72 deletions

View file

@ -111,7 +111,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
extraConfig = cfg: {
assertions =
assertions = lib.nixvim.mkAssertions "plugins.neogit" (
map
(name: {
assertion =
@ -121,14 +121,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
in
isEnabled -> config.plugins.${name}.enable;
message = ''
Nixvim (plugins.neogit): You have enabled the `${name}` integration, but `plugins.${name}.enable` is `false`.
You have enabled the `${name}` integration, but `plugins.${name}.enable` is `false`.
'';
})
[
"telescope"
"diffview"
"fzf-lua"
];
]
);
extraPackages =
[