From 23732c77038a6148de53c70ab02be5164ed5daa6 Mon Sep 17 00:00:00 2001 From: zendesk-acicchetti Date: Mon, 1 Nov 2021 11:14:42 -0400 Subject: [PATCH] fast-syntax-highlighting --- zsh/zsh_plugins.txt | 2 +- zsh/zshrc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zsh/zsh_plugins.txt b/zsh/zsh_plugins.txt index 101faf5..d6cbee8 100644 --- a/zsh/zsh_plugins.txt +++ b/zsh/zsh_plugins.txt @@ -1,5 +1,5 @@ https://github.com/ohmyzsh/oh-my-zsh -https://github.com/zsh-users/zsh-syntax-highlighting +https://github.com/zdharma-continuum/fast-syntax-highlighting https://github.com/zsh-users/zsh-completions https://github.com/ress997/zsh-completions-anyenv https://github.com/b4b4r07/zsh-vimode-visual diff --git a/zsh/zshrc b/zsh/zshrc index 262b7f5..5189a76 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -71,7 +71,7 @@ if [[ ( $ZNAP_USED = 1 ) ]]; then znap source oh-my-zsh lib/{git,completion} znap source oh-my-zsh plugins/colored-man-pages fpath=($fpath ~[oh-my-zsh]/plugins/{pass,ripgrep,cargo,docker,docker-compose,rsync,fd}) - znap source zsh-syntax-highlighting + znap source fast-syntax-highlighting fpath=($fpath ~[zsh-completions]/src) znap source zsh-vimode-visual fi @@ -80,14 +80,14 @@ if [[ -d ~/.cargo/bin ]]; then path=($HOME/.cargo/bin $path) fi -autoload -Uz promptinit -promptinit if [[ $(whence -p starship 2> /dev/null) ]]; then znap eval starship 'starship init zsh --print-full-init' - znap prompt + znap prompt else if [[ ( $ZNAP_USED = 1 ) ]]; then + autoload -Uz promptinit + promptinit znap clone https://github.com/denysdovhan/spaceship-prompt znap prompt spaceship-prompt fi