zsh-autosuggestions
zsh-autosuggestions copied to clipboard
No color after accepting suggestion when using with marlonrichert / zsh-autocomplete
Describe the bug
To Reproduce
Steps to reproduce the behavior:
cd $(mktemp -d)
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions
> .zshrc <<EOF
PS1='%# ' PS2= RPS2='%^'; setopt transientrprompt interactivecomments
source ~/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source ~/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
EOF
env -i HOME=$PWD PATH=$PATH TERM=$TERM ${TERMINFO:+TERMINFO=$TERMINFO} zsh -d
- type
ls /Users/Sharedand<enter> - type
ls /Userand<right-arrow>
The bug only occurs when using with marlonrichert/zsh-autocomplete.
Expected behavior
Color are the same as if marlonrichert/zsh-autocomplete is not installed.
Desktop
- OS + distribution: Arch Linux
- Zsh version: 5.9
- Plugin version:
master
Note that when https://github.com/zdharma/fast-syntax-highlighting is installed, the color will be updated correctly.
I don't have marlonrichert/zsh-autocomplete installed but I observe the same issue.
The plugins I have installed are:
romkatv/powerlevel10k
zsh-users/zsh-autosuggestions
robbyrussell/oh-my-zsh path:plugins/history
Removing P10k has no impact on the issue.
Adding fast-syntax-highlighting fixes the issue for me as well
Desktop
- OS distribution: OSX 13.3
- Zsh version: 5.9 (x86_64-apple-darwin22.0)
See also https://github.com/marlonrichert/zsh-autocomplete/issues/576 for a slightly different conflict between zsh-autocomplete and zsh-autosuggestions.