I am writing a zsh completion function for a shell script/program I wrote. At some point in the completion process I want to use the completion function of another command to handle the rest of the completion.
How can I find out what the completion function for a specific command is called? How can I look up the existing compdef
assignments in my shell?
Background
My program wraps nvim
and there is no _nvim
function in my shell which I would have guessed would be the completion function. So I assume the completion function that nvim
uses is actually _vim
but this question is more general in order to learn.