Doesnt work and breaks zsh-syntax-highlighting
jhogendorn opened this issue · comments
Joshua Hogendorn commented
Have not been able to get this plugin to work, config as follows. Also, enabling the plugin will stop zsh-syntax-highlighting from working, so theres some kind of interference there?
zstyle ':znap:*' repos-dir ~/.cache/znap
source ~/.config/znap/znap.zsh
znap prompt romkatv/powerlevel10k
# Completions
znap source zsh-users/zsh-completions
znap source zsh-users/zsh-autosuggestions
znap source MichaelAquilina/zsh-you-should-use
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
setopt globdots
# History
znap source zsh-users/zsh-history-substring-search
bindkey -M viins '^[[A' history-substring-search-up
bindkey -M viins '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# autoenv
znap source Tarrasch/zsh-autoenv
export AUTOENV_FILE_ENTER=.in
export AUTOENV_FILE_LEAVE=.out
# Colours
znap source zpm-zsh/colorize
[[ ! -f $XDG_CACHE_HOME/lscolor ]] && vivid generate molokai > $XDG_CACHE_HOME/lscolor # because vivid output is non deterministic
export LS_COLORS="$(cat ${XDG_CACHE_HOME}/lscolor)"
export CLICOLOR=1
znap source marlonrichert/zcolors
znap eval zcolors "zcolors ${(q)LS_COLORS}"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
znap source zsh-users/zsh-syntax-highlighting
bindkey -v
export KEYTIMEOUT=1
Marlon Richert commented
That’s because vivid
generates 24-bit themes, but Z Colors supports 4-bit colors only. I will update the Readme to mention this. 🙂
I might add support for 24-bit colors at some point, but it’s not high on my todo list. Patches welcome!
Joshua Hogendorn commented
ooohhhh I would never have spotted that haha. Thankyou for the response!