mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue