highlight: cterm as enum

This commit is contained in:
LilleAila 2025-01-19 18:11:12 +01:00
parent fcb6f82892
commit 5e3a0dcdc3
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib.options) mkOption literalExpression;
inherit (lib.types) nullOr attrsOf listOf submodule bool ints str;
inherit (lib.types) nullOr attrsOf listOf submodule bool ints str enum;
inherit (lib.strings) hasPrefix concatStringsSep;
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.nvim.dag) entryAnywhere;
@ -75,7 +75,22 @@ in {
description = "The cterm background color to use";
};
cterm = mkOption {
type = nullOr (listOf str);
type = nullOr (listOf (enum [
"bold"
"underline"
"undercurl"
"underdouble"
"underdotted"
"underdashed"
"strikethrough"
"reverse"
"inverse"
"italic"
"standout"
"altfont"
"nocombine"
"NONE"
]));
default = null;
description = "The cterm arguments to use. See :h highlight-args";
};