Hugo Zsh Completion Not Working After Setup – What Am I Missing?

Hi everyone,

I followed the official Hugo completion for Zsh setup guide (view.gohugo.io/commands/hugo_completion_zsh/) to enable autocompletion, but it’s not working as expected.

I ran the following command to load completions for every session:

hugo completion zsh > "${fpath[1]}/_hugo"

Then I restarted my shell, but when I try to autocomplete, I get:

_arguments:comparguments:325: can only be called from completion function

I also tried forcing a reload:

autoload -U compinit; compinit
source <(hugo completion zsh)

Yet, completion still doesn’t work. Could this be an issue with my $fpath, or is something overriding my Zsh configuration? I’d appreciate any insights if someone has solved this before!