zsh-autosuggestions: init at 0.3.3 (#21792)

Added a related `programs.zsh.enableAutosuggestions` option
This commit is contained in:
Yacine Hmito
2017-01-11 07:00:48 +01:00
committed by Franz Pletz
parent c03bc57212
commit f88e2fb5f1
3 changed files with 45 additions and 0 deletions
+11
View File
@@ -91,6 +91,13 @@ in
'';
type = types.bool;
};
enableAutosuggestions = mkOption {
default = false;
description = ''
Enable zsh-autosuggestions
'';
};
};
@@ -132,6 +139,10 @@ in
"source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
}
${optionalString (cfg.enableAutosuggestions)
"source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
}
HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help"
'';