_complgen_jit () {
local command=$1
local -a w=("${(@)words[2,$#words]}")
local -a completions=($(complgen complete ~/.config/complgen/${command}.usage $((CURRENT - 2)) -- "${w[@]}"))
compadd -a completions
return 0
}
for f in $HOME/.config/complgen/*.usage; do
local stem=$f:t:r
compdef "_complgen_jit $stem" $stem
done