diff options
author | Alan Pearce | 2018-06-07 15:05:36 +0200 |
---|---|---|
committer | Alan Pearce | 2018-06-07 15:05:36 +0200 |
commit | 4f7594602d15923f8b43fa3e74e3f904528f0053 (patch) | |
tree | 92d150838db4e6f70e9dd44075c46d197727db0d | |
parent | 897d0de3af84ff0e608cfab1ef8a5ac7659a0a7f (diff) | |
download | dotfiles-4f7594602d15923f8b43fa3e74e3f904528f0053.tar.lz dotfiles-4f7594602d15923f8b43fa3e74e3f904528f0053.tar.zst dotfiles-4f7594602d15923f8b43fa3e74e3f904528f0053.zip |
zsh: optimise zplugin startup
-rw-r--r-- | zsh/.config/zsh/.zshrc | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 22af3c8..0816bba 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -125,12 +125,13 @@ fi # Plugins zplugin ice blockf -zplugin load "zsh-users/zsh-completions" -zplugin load "hlissner/zsh-autopair" -zplugin load "zdharma/fast-syntax-highlighting" +zplugin light "zsh-users/zsh-completions" +zplugin light "hlissner/zsh-autopair" +zplugin ice wait'1' lucid +zplugin light "zdharma/fast-syntax-highlighting" zplugin load "caarlos0/zsh-open-pr" zplugin ice blockf -zplugin load "mollifier/anyframe" +zplugin light "mollifier/anyframe" zplugin snippet "https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/functions.zsh" zplugin snippet "https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/termsupport.zsh" @@ -142,7 +143,7 @@ fi if [[ -n $commands[npm] ]] then - zplugin load "lukechilds/zsh-better-npm-completion" + zplugin light "lukechilds/zsh-better-npm-completion" fi if [[ -n $commands[yarn] ]] @@ -152,19 +153,15 @@ fi if [[ -n $commands[nix-env] ]] then - zplugin load "spwhitt/nix-zsh-completions" + zplugin light "spwhitt/nix-zsh-completions" fi if [[ -n $commands[ghq] ]] then - zplugin load "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh/" + zplugin light "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh" fi -autoload -Uz compinit -compinit - -zplugin cdreplay -q - +zplugin ice atinit 'zpcompinit; zpcdreplay -q' # General configuration |