-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I noticed that the following Zoxide completion stopped working when I started to use Ez-compinit:
cd foo<SPACE><TAB> # show interactive completionsTo activate Zoxide, I have this in my .zshrc:
eval "$(zoxide init zsh --cmd cd)"Since I'm not very knowledgeable about Zsh completion, I asked AI, and it explained that this line in the Zoxide initialisation checks if the completion system is fully active:
[[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete cdBecause Ez-compinit is holding the system in a deferred state, this checks fails, and the completion for cd isn't loaded.
It suggested to trigger Compinit after loading Antidote and before initialising Zoxide like this:
autoload -Uz compinit
compinitIndeed, that solved the problem. If you think the analysis is correct, I suggest to mention this special case in the readme file. Right now, it says one can just load this plugin, and forget about calling Compinit. It's confusing for people without the necessary knowledge when this main premise fails.