-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interference between zsh-vi-mode and zsh-syntax-highlighting #154
Comments
Hi @xulongwu4 Thanks for your issue, and sorry for the late reply, currently I'm quite busy, I will research your issue when I am possible. Hope you have a good day! : ) Thanks and Regards |
Hello ! I have a similar issue ! I only have |
The same thing happens to me. Can't get either to work. |
Same issue for me as well. Using omz to manage plugins. I love the plugin btw! Thanks for that. The syntax highlighting is not too important, but I do feel like I'm missing it though. Maybe you could guide us into the right direction of where to look for a solution? I understand you are busy. Update: I installed this plugin instead https://github.com/zdharma-continuum/fast-syntax-highlighting and that seems to work. Cheers |
Replaced |
Thanks, that seems to work. For me at least. |
Can confirm this worked for me as well |
Any update on this? I'd rather continue using |
Hi @ryanmsnyder, I'd love to have a check on this issue, as I'm quite busy recently, please be patient, I'll try to fix it as soon as possible. Thanks & Regards |
This issue was caused by a bug which didn't invoke original function after hooking the function. This bug also caused issues mentioned in the #154 as well.
Hi @xulongwu4 If your issue has been settled down with the HEAD version, let's close this issue. Thanks & Regards |
General information
Please report the following information as possible as you can:
Basic examination
Problem description
zsh-vi-mode
seems to alter the behavior ofzsh-syntax-highlighting
, and its impact depends on whetherzsh-vi-mode
is sourced before or afterzsh-syntax-highlighting
.Reproduction steps
Firstly, I tried only installing
zsh-autosuggestions
andzsh-syntax-highlighting
, but not installingzsh-vi-mode
. I also customized the highlighting rule for shell aliases. My mininumzshrc
file is as follows:this is the behavior of the syntax highlight:
Now I first tried to source
zsh-vi-mode
beforezsh-syntax-highlighting
. Myzshrc
file is as follows:The behavior of syntax highlighting becomes
The problem is that, when I typed
ls
, thetest
is the suggestion and it is supposed to be in a dimmed color. However, it the gif,test
is highlighted as regular text instead of a dimmed color.Then when I typed
cd
,test
is in dimmed color. However, as soon as I typed the first letter intest
, the wordtest
becomes regular text color (white in my case). In the first gif, one can see that if we don't sourcezsh-vi-mode
,cd t
should still keepest
in dimmed color.Then I tried source
zsh-vi-mode
last. Myzshrc
becomesNow the behavior of
ls<Tab>
is shown below.ls
is a shell alias and is supposed to be in color#88c0d0
(cyan). This is correct before I typed<Tab>
. However, when I typed<Tab>
, the color ofls
becomes some sort of pink color. This change of color with<Tab>
does not happen if I do not loadzsh-vi-mode
at all.Expected behavior
There should be a way to set up
zsh-vi-mode
such that it does not interfere withzsh-syntax-highlighting
.The text was updated successfully, but these errors were encountered: