utility/precognition: fix priority example, add default

This commit is contained in:
Nowaaru 2024-11-03 17:36:39 -07:00
parent 7b17023780
commit 3682edd22e
No known key found for this signature in database

View file

@ -3,7 +3,6 @@
let let
inherit (lib.options) mkEnableOption mkOption literalExpression; inherit (lib.options) mkEnableOption mkOption literalExpression;
inherit (lib.types) attrsOf listOf str bool int submodule; inherit (lib.types) attrsOf listOf str bool int submodule;
in in
{ {
options.vim.utility.motion.precognition = rec { options.vim.utility.motion.precognition = rec {
@ -29,7 +28,7 @@ in
# or # or
{ foreground = "#0000FF", background = "#000000" }; { foreground = "#0000FF", background = "#000000" };
''; '';
default = { link = "Comment"; }; default = { link = "Comment"; };
description = "The highlight for the virtual text."; description = "The highlight for the virtual text.";
}; };
@ -41,9 +40,10 @@ in
description = "The easier-to-read depiction of the motion."; description = "The easier-to-read depiction of the motion.";
}; };
prio = { prio = {
type = str; type = int;
description = "The priority of the hint."; description = "The priority of the hint.";
example = str; example = 10;
default = 1;
}; };
}; };
}); });