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

@ -359,17 +359,17 @@ lib.nixvim.plugins.mkNeovimPlugin {
'';
};
assertions = [
assertions = lib.nixvim.mkAssertions "plugins.yanky" [
{
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
message = ''
Nixvim (plugins.yanky): The telescope integration needs telescope to function as intended
The telescope integration needs telescope to function as intended
'';
}
{
assertion = cfg.settings.ring.storage == "sqlite" -> config.plugins.sqlite-lua.enable;
message = ''
Nixvim (plugins.yanky): The sqlite storage backend needs `sqlite-lua` to function as intended.
The sqlite storage backend needs `sqlite-lua` to function as intended.
You can enable it by setting `plugins.sqlite-lua.enable` to `true`.
'';
}