mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 12:45:24 +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
|
@ -249,16 +249,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
'';
|
||||
};
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion =
|
||||
isBool cfg.settings.enable_persistent_history && cfg.settings.enable_persistent_history
|
||||
-> config.plugins.sqlite-lua.enable;
|
||||
message = ''
|
||||
Nixvim (plugins.neoclip): The persistent history sqlite storage backend needs `sqlite-lua` to function as intended.
|
||||
You can enable it by setting `plugins.sqlite-lua.enable` to `true`.
|
||||
'';
|
||||
}
|
||||
];
|
||||
assertions = lib.nixvim.mkAssertions "plugins.neoclip" {
|
||||
assertion =
|
||||
isBool cfg.settings.enable_persistent_history && cfg.settings.enable_persistent_history
|
||||
-> config.plugins.sqlite-lua.enable;
|
||||
message = ''
|
||||
The persistent history sqlite storage backend needs `sqlite-lua` to function as intended.
|
||||
You can enable it by setting `plugins.sqlite-lua.enable` to `true`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue