zsh-autosuggestions icon indicating copy to clipboard operation
zsh-autosuggestions copied to clipboard

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

Open sammy88888888 opened this issue 2 years ago • 2 comments

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

  • OS + distribution: Mac M2 OSMonterey v.12.5.1
  • Zsh version: 5.8.1
  • Plugin version: v0.6.4

sammy88888888 avatar Sep 06 '22 09:09 sammy88888888

@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

srntqn avatar Sep 06 '22 10:09 srntqn

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

sammy88888888 avatar Sep 06 '22 11:09 sammy88888888

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.

Soooda avatar Feb 02 '23 12:02 Soooda

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 🤷

Jasmeet107 avatar Feb 15 '23 15:02 Jasmeet107