fix(zsh): correct way of loading zsh autosuggestions and highlighting
This commit is contained in:
parent
791add1e93
commit
fcf765da20
4
zshrc
4
zshrc
@ -71,7 +71,7 @@ ZSH_THEME="robbyrussell"
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
|
||||
plugins=(git fzf zsh-autosuggestions zsh-syntax-highlighting)
|
||||
plugins=(git fzf)
|
||||
|
||||
# Using highlight (http://www.andre-simon.de/doku/highlight/en/highlight.html)
|
||||
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
||||
@ -113,3 +113,5 @@ export FZF_TMUX=1
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source $HOME/.config/zsh/fzf-git.sh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
Loading…
x
Reference in New Issue
Block a user