Skip to content

Commit

Permalink
highlight: cterm as enum
Browse files Browse the repository at this point in the history
  • Loading branch information
LilleAila committed Jan 19, 2025
1 parent fcb6f82 commit 5e3a0dc
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions modules/neovim/init/highlight.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
};
Expand Down

0 comments on commit 5e3a0dc

Please sign in to comment.