helpers/types: allow highlight.ctypes to accept a string

This commit is contained in:
Gaetan Lepage 2024-04-07 16:55:08 +02:00 committed by Gaétan Lepage
parent 38a4fc7709
commit 776cc84ad1

View file

@ -65,7 +65,7 @@ in
default = mkNullOrOption bool "Don't override existing definition."; default = mkNullOrOption bool "Don't override existing definition.";
ctermfg = mkNullOrStr "Sets foreground of cterm color."; ctermfg = mkNullOrStr "Sets foreground of cterm color.";
ctermbg = mkNullOrStr "Sets background of cterm color."; ctermbg = mkNullOrStr "Sets background of cterm color.";
cterm = mkNullOrOption attrs '' cterm = mkNullOrOption (either str attrs) ''
cterm attribute map, like |highlight-args|. cterm attribute map, like |highlight-args|.
If not set, cterm attributes will match those from the attribute map documented above. If not set, cterm attributes will match those from the attribute map documented above.
''; '';