zsh: use correct autosuggestion color variable (#5320)

To configure zsh's autosuggest "highlight style" we use ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE but it's currently set to AUTOSUGGESTION_HIGHLIGHT_COLOR (via autosuggestion.highlight). This change was apparently made back in 2016 or earlier.
This commit is contained in:
Johan Runsten 2024-04-24 22:59:02 +02:00 committed by GitHub
parent bfa7c06436
commit 2f072c127c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -612,7 +612,7 @@ in
source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh
'')
(optionalString (cfg.autosuggestion.enable && cfg.autosuggestion.highlight != null) ''
AUTOSUGGESTION_HIGHLIGHT_COLOR="${cfg.autosuggestion.highlight}"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="${cfg.autosuggestion.highlight}"
'')
(optionalString cfg.oh-my-zsh.enable ''