zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.5k stars 1.32k forks source link

file names and settings in docs don't match actual settings in files #923

Closed heafnerj closed 1 year ago

heafnerj commented 1 year ago

I am using zsh-syntax-highlighting in oh-my-zsh on macOS Catalina and Ventura and am trying to customize some things. The plugin works, but the problem is that the information in the docs does not match the corresponding file names and variable names in the files in my distribution. I my .zshrc file I cannot load the plugin as zsh-syntax-highlighting, I must use fast-syntax-highlighting because the former causes a crash when I launch my Terminal. The docs for customizing ZSH_HIGHLIGHT_STYLES seem straightforward but in the file fast-highlight the variable is named FAST_HIGHLIGHT_STYLES. I've been trying to simply customized ZSH_HIGHLIGHT_STYLES[path] and nothing works. Am I missing something very obvious?

heafnerj commented 1 year ago

I found the problem! I had copied the plugin's repo from another machine using the name fast-syntax-highlighting instead of zsh-syntax-highlighting. I guess the name changed sometime in the past and I didn't catch it. I installed the repo with the correct name and now configuration works perfectly now. I apologize for opening this issue, but I was out of options at the time. Thank you for this wonderful software!

danielshahaf commented 1 year ago

Glad you solved it. For future reference:

heafnerj commented 1 year ago

Thank you for clearing up the fork issue (I wasn't sure which was the original), and thanks for the debugging tip too.