mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
treewide: use mkAssertions wherever possible
This commit is contained in:
parent
a7e516b322
commit
af6e4b0bad
13 changed files with 63 additions and 72 deletions
|
@ -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 =
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue