From 35703730122d3df768706a562e7944db8585ce63 Mon Sep 17 00:00:00 2001 From: Taha YASSINE Date: Sat, 9 Nov 2024 19:35:23 +0100 Subject: [PATCH] zsh: fix completion when zplug is enabled --- modules/programs/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index b6e46392c..2c23f74fe 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -632,10 +632,10 @@ in '') cfg.plugins)) '' - # Oh-My-Zsh/Prezto calls compinit during initialization, + # Oh-My-Zsh/Prezto/zplug calls compinit during initialization, # calling it twice causes slight start up slowdown # as all $fpath entries will be traversed again. - ${optionalString (cfg.enableCompletion && !cfg.oh-my-zsh.enable && !cfg.prezto.enable) + ${optionalString (cfg.enableCompletion && !cfg.oh-my-zsh.enable && !cfg.prezto.enable && !cfg.zplug.enable) cfg.completionInit }''