summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2018-06-07 15:05:36 +0200
committerAlan Pearce2018-06-07 15:05:36 +0200
commit4f7594602d15923f8b43fa3e74e3f904528f0053 (patch)
tree92d150838db4e6f70e9dd44075c46d197727db0d /zsh
parent897d0de3af84ff0e608cfab1ef8a5ac7659a0a7f (diff)
downloadnixfiles-4f7594602d15923f8b43fa3e74e3f904528f0053.tar.lz
nixfiles-4f7594602d15923f8b43fa3e74e3f904528f0053.tar.zst
nixfiles-4f7594602d15923f8b43fa3e74e3f904528f0053.zip
zsh: optimise zplugin startup
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc21
1 files changed, 9 insertions, 12 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 22af3c86..0816bbac 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