mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-18 01:35:41 +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
|
@ -177,17 +177,17 @@ in
|
|||
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
assertions = [
|
||||
assertions = lib.nixvim.mkAssertions "plugins.alpha" [
|
||||
{
|
||||
assertion = themeDefined || layoutDefined;
|
||||
message = ''
|
||||
Nixvim (plugins.alpha): You have to either set a `theme` or define some sections in `layout`.
|
||||
You have to either set a `theme` or define some sections in `layout`.
|
||||
'';
|
||||
}
|
||||
{
|
||||
assertion = !(themeDefined && layoutDefined);
|
||||
message = ''
|
||||
Nixvim (plugins.alpha): You can't define both a `theme` and custom options.
|
||||
You can't define both a `theme` and custom options.
|
||||
Set `plugins.alpha.theme = null` if you want to configure alpha manually using the `layout` option.
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue