diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-25 00:09:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 00:09:18 +0100 |
commit | fef107d5a59f3a0937a3da41a69f160e68b98f28 (patch) | |
tree | 96ef32ea1e06b97958e83198c9d8e7f9da71b00e /nixos | |
parent | 54f7fcdd07ec620d338ed10adc6ef1ddf7036a6d (diff) | |
parent | b897f5fe70450cd20a4118311e7d1e6b2bfa90bf (diff) |
Merge pull request #142839 from ivan/zsh-autosuggestions-config-async
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/zsh/zsh-autosuggestions.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/programs/zsh/zsh-autosuggestions.nix b/nixos/modules/programs/zsh/zsh-autosuggestions.nix index a8fcfff95e594..fee324cc73264 100644 --- a/nixos/modules/programs/zsh/zsh-autosuggestions.nix +++ b/nixos/modules/programs/zsh/zsh-autosuggestions.nix @@ -36,6 +36,13 @@ in ''; }; + async = mkOption { + type = types.bool; + default = true; + description = "Whether to fetch suggestions asynchronously"; + example = false; + }; + extraConfig = mkOption { type = with types; attrsOf str; default = {}; @@ -56,6 +63,7 @@ in export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="${cfg.highlightStyle}" export ZSH_AUTOSUGGEST_STRATEGY=("${cfg.strategy}") + ${optionalString (!cfg.async) "unset ZSH_AUTOSUGGEST_USE_ASYNC"} ${concatStringsSep "\n" (mapAttrsToList (key: value: ''export ${key}="${value}"'') cfg.extraConfig)} ''; |