programs.zsh.syntax-highlighting: simplify enable option by using mkEnableOption

This commit is contained in:
Maximilian Bosch 2017-05-30 14:40:25 +02:00
parent 0925f79d56
commit c4e4071ed1
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -8,13 +8,7 @@ in
{ {
options = { options = {
programs.zsh.syntaxHighlighting = { programs.zsh.syntaxHighlighting = {
enable = mkOption { enable = mkEnableOption "zsh-syntax-highlighting";
default = false;
type = types.bool;
description = ''
Enable zsh-syntax-highlighting.
'';
};
highlighters = mkOption { highlighters = mkOption {
default = [ "main" ]; default = [ "main" ];