1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

zsh: fix completion when zplug is enabled

This commit is contained in:
Taha YASSINE 2024-11-09 19:35:23 +01:00
parent 2f607e07f3
commit 3570373012

View file

@ -632,10 +632,10 @@ in
'') cfg.plugins)) '') 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 # calling it twice causes slight start up slowdown
# as all $fpath entries will be traversed again. # 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 cfg.completionInit
}'' }''