AstroNvim / astrotheme

The default colorscheme used by AstroNvim
https://AstroNvim.com
GNU General Public License v3.0
107 stars 20 forks source link

zsh autosuggestions text color is overridden in terminal buffer #87

Closed Hacksore closed 1 year ago

Hacksore commented 1 year ago

Checklist

Neovim version (nvim -v)

0.9.1

Operating system/version

linux

Terminal/GUI

any

Describe the bug

zsh autosuggestion colors are forced black in a terminal buffer.

Steps to Reproduce

peep the bug repo and steps as follows.

  1. docker run -it hacksore/astro-zsh-bug
  2. let it cook
  3. open nvim
  4. let it cook again
  5. make a new :terminal
  6. in the terminal run zsh
  7. write something like brew help
  8. write brew

You should see the black text now after brew in the suggestions

Expected behavior

you should have the normal color respected by ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE in my case:

export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8"

Screenshots

what the bug looks like image

How it should look image

Additional Context

I did some digging and think the cause is astrotheme related as this didn't happen in v1.

Hacksore commented 1 year ago

wow if I use a hex color it solves this 💀

# make new astro theme work
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5e5e5e"