summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2020-11-22 20:56:24 +0100
committerAlan Pearce2020-11-22 20:56:24 +0100
commit6f5a21a9e7ff68675b032ea10a7966623f8660f2 (patch)
treec2f777245d4fbfc545a1fce001e37a322d55c24c /user/settings
parentc5b94cc55f2fc7916ca59017ce380786dd9fd450 (diff)
downloadnixfiles-6f5a21a9e7ff68675b032ea10a7966623f8660f2.tar.lz
nixfiles-6f5a21a9e7ff68675b032ea10a7966623f8660f2.tar.zst
nixfiles-6f5a21a9e7ff68675b032ea10a7966623f8660f2.zip
zsh: improve startup time by managing completion manually
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/zsh.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index cda96e80..aec8ff50 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -42,7 +42,7 @@ in
     enable = true;
 
     enableAutosuggestions = true;
-    enableCompletion = true;
+    enableCompletion = false;
     defaultKeymap = "emacs";
 
     dotDir = ".config/zsh";
@@ -254,6 +254,8 @@ in
     '';
 
     initExtra = ''
+      autoload -Uz compinit
+      compinit -C
       typeset -T GHQ_ROOT ghq_root
       export GHQ_ROOT="$HOME/projects:$HOME/go/src:$HOME/quicklisp/local-projects"