The syntax highlighting is implemented by zdharma-continuum/fast-syntax-highlighting.
The default
theme in fast-syntax-highlighting will use the colors of your terminal emulator color scheme to highlight words, so you can set the theme to default
and change the terminal emulator color scheme to the corresponding one to get proper syntax highlighting.
The prompt theme is based on pure-power which is inspired by pure, it depends on romkatv/powerlevel10k.
To use it, simply source this file in your zshrc after powerlevel10k has been load:
source /path/to/dotfiles/.zsh-theme/<color-scheme>.zsh
Where <color-scheme>
is one of the following:
gruvbox-material-dark
gruvbox-material-light
gruvbox-mix-dark
everforest-dark
everforest-light
edge-dark
edge-light
sonokai
sonokai-andromeda
sonokai-atlantis
sonokai-espresso
sonokai-maia
sonokai-shusia
soft-era
Alternatively, if you are using zinit (formerly known as zplugin, highly recommended), you can install the theme like this:
zinit light romkatv/powerlevel10k
zinit snippet https://github.com/sainnhe/dotfiles/raw/master/.zsh-theme/<color-scheme>.zsh
There are 3 modes of the prompt themes:
PURE_POWER_MODE=modern # use nerdfont characters in the prompt
PURE_POWER_MODE=fancy # use unicode characters in the prompt (default)
PURE_POWER_MODE=portable # use only ascii characters in the prompt
To switch between them, set this variable Before sourcing the color scheme file in your zshrc.