Zsh autocomplete not fully working

Hi there :slight_smile:
I like to use this autocompletion plugin for zsh and some time ago it worked completely fine. Until now I had zplug set up with home-manager to load the plugin, but I want to switch to using plugins from nixpkgs instead and so I changed my configuration accordingly. This is what that looks like (excerpt):

home-manager.users.mertyn.programs.zsh = {
  enable = true;
  enableCompletion = false;

  plugins = [{
    name = "zsh-autocomplete";
    src = "${pkgs.zsh-autocomplete}/share/zsh-autocomplete";
  }];
};

Now I am having a problem with this: for some reason the completion doesn’t fully work like it used to. When starting to type a command you are supposed to already get some suggestions below the prompt listing available programs, aliases, functions etc. Simple tab completion after having started typing still works, but the listing is quite helpful as well.
The most curious thing about this is, that even if I reboot an older configuration or rebuild my system with an older revision of my config, the previous behavior is not restored. I have also tried this out on another machine, that didn’t have my new config before and I observered the exact same problem. Autosuggestions are broken and rolling back does not change anything.
I have also tried removing zsh as my shell and everything related to it in my home directory, then run garbage collection, to remove any remnants, and then reenabling all of my config related to zsh. That also sadly did not make a difference. Is it possible, that I still left some things related to zsh in my home? I found many files and folders that had zsh in their name, but I was trying to be careful and not delete anything I shouldn’t.
Most recently I even tried rolling back all of my packages to stable nixpkgs, instead of unstable I am using on my desktop computers, still with no change.

This seems like a really specific problem, but if anyone knows anything or has any suggestions, I would appreciate it very much.
Thanks in advance :slight_smile:

I’m using zplug still, but I have a few other options enabled that you could try. Sorry, I’m on mobile so I can’t test this out. The relevant section of my config:

zsh = {
        enable = true;
        enableCompletion = true;
        autosuggestion.enable = true;
...

If you’re trying to get autosuggestions to work, I think that option is what you want, and I have enableCompletion set to true but I see you have it false and it was working in the past for you so I’m hoping it’s the autosuggestions option.

A few more options to play with here: Appendix A. Home Manager Configuration Options

Thanks for the reply, but unfortunately that doesn’t help me. When using the zsh-autocomplete plugin, one has to specifically disable zsh.enableCompletion, since the plugin replaces the default zsh autocomplete. Autosuggestions also is a different feature to the autocomplete and I don’t want to add that for now.

I have a minor update on this issue by now. Since the initial post I have noticed, that the completion plugin works kind of more than I thought, because for example, when typing out a program, I can still use the arrow key down to get a list of completions that are found for my input. Additionally I found out that zsh’s builtin completions were still turned on in the system config (since that is the default value). I am not sure if it made any difference at all but for good measure I have set programs.zsh.enableCompletion to false now. (important: that is the NixOS provided option and not in home-manager)

I guess for now, I just have to live with the fact that the completions just don’t completely work like they used to. It’s hard to figure out what is actually different from before, and at least I haven’t lost the autocomplete plugin altogether.