Closed
Description
Hello, I found some issues with syntax highlighter in a version controled directory with Geometry theme.
When you type something in a version controled directory with syntax highlighter is on, and then move the cursor back to the part where there is the command is highlighted, it would show something like this.
This issue doesn't happen with the deafult theme nor in the normal directory.
It's kinda annoying when you mistype something and want to fix but can't see anything. It would be very nice if it's fixed.
Activity
jedahan commentedon Jun 9, 2018
Which syntax highlighter are you using? I am having trouble reproducing this issue on maxOS 10.14.3 in iTerm2 and Alacritty, using https://github.com/zsh-users/zsh-autosuggestions.
Can you share the most minimal zshrc that can reproduce this issue?
vinhphamuit commentedon Jun 10, 2018
I'm using Prezto's syntax highlighting module (https://github.com/sorin-ionescu/prezto/tree/master/modules/syntax-highlighting) which using https://github.com/zsh-users/zsh-syntax-highlighting
This is my current zshrc

jedahan commentedon Jun 10, 2018
Can you try these two things?
I want to try and find where the conflict is.
vinhphamuit commentedon Jun 10, 2018
jedahan commentedon Jun 10, 2018
Are you happy using zdharma/fast-syntax-highlighting ? Maybe we can open an issue on zsh-users/zsh-synax-highlighting and see if we can fix things there? Maybe it relates to zsh-users/zsh-syntax-highlighting#470 or zsh-users/zsh-syntax-highlighting#160 ...
vinhphamuit commentedon Jun 10, 2018
Maybe I will use fast-syntax-highlighting for a while.
frm commentedon Jun 27, 2018
@jedahan any idea what this might be?
jedahan commentedon Jun 27, 2018
@fribmendes when I looked around a while ago, it just seemed something underlying with zsh-syntax-highlighting being a bit buggy, and since fast-syntax-highlighting is nicer I just use that. I am trying to reduce my responsibilities a bit so since there is a working alternative I am happy to close this and recommend people use fast-syntax-highlighting. It's also a bit painful with people coming from frameworks that are harder to integrate with outside sources like ours. If someone who maintains omz or prezto includes geometry i'm happy to help work with them a bit, but this seems a hairy corner of ZLE that I have trouble debugging.
frm commentedon Jun 28, 2018
Yep, I'm perfectly fine with this. I can add it to the FAQ, in case this comes up.