helpers: add highlightType and defaultNullOpts.mkHighlight

This commit is contained in:
Gaetan Lepage 2023-08-10 14:44:45 +02:00 committed by Gaétan Lepage
parent 9349da2714
commit 36a6ab4ba7
2 changed files with 44 additions and 1 deletions

View file

@ -8,7 +8,7 @@ in
with lib; {
options = {
highlight = mkOption {
type = types.attrsOf types.anything;
type = types.attrsOf helpers.highlightType;
default = {};
description = "Define highlight groups";
example = ''