mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
programs.zsh.syntax-highlighting: refactor highlighters
option for proper validation
Right now the `programs.zsh.syntax-highlighting.highlighters` option lacks appropriate validation which can cause confusing things when mistyping a higlighter for zsh-syntax-highlighting.
This commit is contained in:
parent
9046e54f6d
commit
baa3b3efff
|
@ -18,7 +18,17 @@ in
|
||||||
|
|
||||||
highlighters = mkOption {
|
highlighters = mkOption {
|
||||||
default = [ "main" ];
|
default = [ "main" ];
|
||||||
type = types.listOf(types.str);
|
|
||||||
|
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
|
||||||
|
type = types.listOf(types.enum([
|
||||||
|
"main"
|
||||||
|
"brackets"
|
||||||
|
"pattern"
|
||||||
|
"cursor"
|
||||||
|
"root"
|
||||||
|
"line"
|
||||||
|
]));
|
||||||
|
|
||||||
description = ''
|
description = ''
|
||||||
Specifies the highlighters to be used by zsh-syntax-highlighting.
|
Specifies the highlighters to be used by zsh-syntax-highlighting.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue