Zsh: Make errors in unikitty-reversible theme less eye searing

This commit is contained in:
tastytea 2022-03-20 20:33:53 +01:00
parent 9806e16d44
commit a8eb177896
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -6,7 +6,7 @@ function()
local -A _urc # unikitty-reversible colour local -A _urc # unikitty-reversible colour
# From <https://gitlab.com/saalen/highlight> (translated to 256 colours) # From <https://gitlab.com/saalen/highlight> (translated to 256 colours)
# _urc[defaultbg]="#c3c2c4" # _urc[defaultbg]="#2e2a31"
# _urc[lighterbg]="#4b484e" # _urc[lighterbg]="#4b484e"
# _urc[selbg]="#69666b" # _urc[selbg]="#69666b"
_urc[comments]="244" # #878589 _urc[comments]="244" # #878589
@ -21,7 +21,7 @@ _urc[strings]="36" # #17ad98
_urc[regex]="39" # #149bda _urc[regex]="39" # #149bda
_urc[builtins]="99" # #7864fa _urc[builtins]="99" # #7864fa
_urc[keywords]="135" # #b33ce8 _urc[keywords]="135" # #b33ce8
_urc[error]="164" # #d41acd # _urc[error]="164" # #d41acd
if [[ -n "${ZSH_HIGHLIGHT_VERSION}" ]]; then if [[ -n "${ZSH_HIGHLIGHT_VERSION}" ]]; then
# <https://github.com/zsh-users/zsh-syntax-highlighting/tree/master/highlighters/main> # <https://github.com/zsh-users/zsh-syntax-highlighting/tree/master/highlighters/main>
@ -86,14 +86,14 @@ if [[ -n "${ZSH_HIGHLIGHT_VERSION}" ]]; then
# Misc # Misc
ZSH_HIGHLIGHT_STYLES[default]="fg=${_urc[default]}" ZSH_HIGHLIGHT_STYLES[default]="fg=${_urc[default]}"
ZSH_HIGHLIGHT_STYLES[comment]="fg=${_urc[comments]},italic" ZSH_HIGHLIGHT_STYLES[comment]="fg=${_urc[comments]},italic"
ZSH_HIGHLIGHT_STYLES[unknown-token]="fg=${_urc[error]},standout" ZSH_HIGHLIGHT_STYLES[unknown-token]="standout"
ZSH_HIGHLIGHT_STYLES[globbing]="fg=${_urc[default]},bold" ZSH_HIGHLIGHT_STYLES[globbing]="fg=${_urc[default]},bold"
ZSH_HIGHLIGHT_STYLES[history-expansion]="fg=${_urc[builtins]}" ZSH_HIGHLIGHT_STYLES[history-expansion]="fg=${_urc[builtins]}"
ZSH_HIGHLIGHT_STYLES[redirection]="fg=${_urc[light]}" ZSH_HIGHLIGHT_STYLES[redirection]="fg=${_urc[light]}"
ZSH_HIGHLIGHT_STYLES[cursor]='standout' ZSH_HIGHLIGHT_STYLES[cursor]='standout'
# Brackets # Brackets
ZSH_HIGHLIGHT_STYLES[bracket-error]="fg=${_urc[error]},standout" ZSH_HIGHLIGHT_STYLES[bracket-error]="standout"
ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]="bold,underline" ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]="bold,underline"
ZSH_HIGHLIGHT_STYLES[bracket-level-1]='none' ZSH_HIGHLIGHT_STYLES[bracket-level-1]='none'
ZSH_HIGHLIGHT_STYLES[bracket-level-2]='none' ZSH_HIGHLIGHT_STYLES[bracket-level-2]='none'