zsh-autosuggestions
zsh-autosuggestions copied to clipboard
Highlight style has disappeared and I can't get it back!
Describe the bug
Recently my zsh-autosuggestions suggestion colour has changed to be the same colour as the text I've written and I can't get it back, see the screen shot below.
I've tried updating my .zshrc
as suggested in the docs just to see if anything changes, but it seems to have no effect:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
Expected behaviour
To retain the original suggestion highlight colour.
Screenshots

Desktop
- OS + distribution: Mac M2 OSMonterey v.12.5.1
- Zsh version: 5.8.1
- Plugin version: v0.6.4
@sammy88888888 Hi!
I had the same problem as you, fixed it using this instruction:
https://github.com/zsh-users/zsh-autosuggestions/issues/684#issuecomment-1110988619
Amazing, should have spotted that. Thanks, that solved the problem!
In addition to this weird behavior, I also found running omz reload
will temporarily enable ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE
to take effect (until you close the current terminal session) while simply running source ~/.zshrc
does not.
Nonetheless, #684 is the solution for me, should have figured that the outdated version was causing the matter. I am just surprised as I thought omz update
would do all the version updating stuff for me.
this is still happening to me, even after #684 :( any other ideas?
edit: I just completely uninstalled and reinstalled both plugins, including this one, and it's working now 🤷