zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.33k stars 1.85k forks source link

Highlight style has disappeared and I can't get it back! #704

Closed sammy88888888 closed 1 year ago

sammy88888888 commented 1 year ago

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

Screenshot 2022-09-06 at 10 20 56

Desktop

srntqn commented 1 year ago

@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

sammy88888888 commented 1 year ago

Amazing, should have spotted that. Thanks, that solved the problem!

Soooda commented 1 year ago

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.

Jasmeet107 commented 1 year ago

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 🤷