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

@ -152,14 +152,12 @@ in
config = mkIf cfg.enable {
extraPlugins = [ cfg.package ];
assertions = [
{
assertion = all (n: elem n (range 0 9)) (attrNames cfg.bookmarks);
message = ''
Nixvim (plugins.marks): The keys of the `bookmarks` option should be integers between 0 and 9.
'';
}
];
assertions = lib.nixvim.mkAssertions "plugins.mark" {
assertion = all (n: elem n (range 0 9)) (attrNames cfg.bookmarks);
message = ''
The keys of the `bookmarks` option should be integers between 0 and 9.
'';
};
extraConfigLua =
let