From 776cc84ad1b67618c24f740b6d71a4fc3f87ed1c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 7 Apr 2024 16:55:08 +0200 Subject: [PATCH] helpers/types: allow highlight.ctypes to accept a string --- lib/types.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types.nix b/lib/types.nix index e5101264..3f578a45 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -65,7 +65,7 @@ in default = mkNullOrOption bool "Don't override existing definition."; ctermfg = mkNullOrStr "Sets foreground of cterm color."; ctermbg = mkNullOrStr "Sets background of cterm color."; - cterm = mkNullOrOption attrs '' + cterm = mkNullOrOption (either str attrs) '' cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above. '';