Plugin subdirectories that contain completion files are not loaded
Describe the bug
I have my own completions set at $ZSH_CUSTOM/plugins/my-completions/src and a my-completions.plugin.zsh to add src to fpath.
However, while the completions for the built-in plugins of OMZ seems to be working fine, my completions at my custom simply do not get loaded.
I have to manually run compinit (or add it after the source .oh-my-zsh.zsh, but it brings some consequences like not leveraging cache).
Steps to reproduce
Here is my .zshrc:
https://github.com/felipecrs/dotfiles/blob/master/home/dot_zshrc
and here is my-completions:
both deno and volta does not work.
Expected behavior
It's expected to simply work, without me having to re-run compinit.
Screenshots and recordings
OS / Distro
Ubuntu 20.04
Zsh version
5.8
Terminal emulator
Windows Terminal
If using WSL on Windows, which version of WSL
WSL2
Additional context
In the zsh-completions install guide for OMZ, they suggest adding autoload -U compinit && compinit but I guess that was not supposed to be needed.
And yes, I already tried to disable everything in my zshrc to isolate the issue, and it does not work.
Source: ohmyzsh/ohmyzsh