Closed musjj closed 2 months ago
can you make sure compinit
has been called before load fzf-tab?
I noticed same thing happening, I minimised .zshrc
and was able to replicate it with it as well, on video I pressed ESC on 3rd completion.
This is the .zshrc
I used:
autoload -Uz compinit
compinit -i
source ~/.config/zsh/fzf-tab/fzf-tab.plugin.zsh
source ~/.config/zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source ~/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
https://github.com/user-attachments/assets/0480b272-fab4-49fc-80d2-99c7299cf23d
I've tested this, and any completion failure causes the syntax highlighting to disappear, even without using fzf-tab.
It's a bug of fast-syntax-highlighting. zsh-syntax-highlighting works well.
I will look into it someday.
Describe the bug
A clear and concise description of what the bug is.
I can make sure:
compinit
To Reproduce
fast-syntax-highlighting
pluginExpected behavior
The syntax highlighting does not disappear
Environment:
Minimal zshrc
if [[ -f "$HOME/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh" ]]; then source "$HOME/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh" fi
if [[ -f "$HOME/.zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" ]]; then source "$HOME/.zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" fi