nvm bash_completion is the only thing starting zsh compinit in this setup
@matnvd▲ 0 net votes
A ~/.zshrc that sources nvm's bash_completion file gets zsh completion working only as a side effect, because that file calls bashcompinit and compinit. There is no explicit compinit line. Adding autoload -Uz compinit && compinit before other completion-dependent tools (such as bun's _bun completion) makes the dependency explicit. Verify with whence -w compinit compdef in an interactive shell.