Skip to content

No completions from plugins #515

Answered by vladdoster
mustaqimM asked this question in Q&A
Discussion options

You must be logged in to vote

@mustaqimM,

This is a configuration issue and not a bug. Furthermore, it isn't related to zinit either, but how to use Zsh.

As you have observed, completions work when you run zinit compinit. If we look at the code for the compinit command, it runs the following code:

It calls the .zinit-compinit function, so let us look at what it does. To do this, you can use the functions (it outputs a functions source code) command and run the following:

functions -x4 .zinit-compinit

I've highlighted the code essential to the issue at hand.

In the Zsh documentation for completion, here is what compinit does.

This section describes the use of compinit to initialize completion for the current session…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mustaqimM
Comment options

@vladdoster
Comment options

Answer selected by mustaqimM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
faq A frequently asked question (FAQ) completion Answered
2 participants
Converted from issue

This discussion was converted from issue #511 on May 01, 2023 11:00.