Closed rollschild closed 3 years ago
I think that's because you need to set the file
attribute for plugins that you add from nixpkgs
, as they put their file in $out/share/zsh/site-functions
, whereas if you clone the repository, you get the file at the root of the source directory.
Here's an example for fast-syntax-highlighting
:
{
name = "fast-syntax-highlighting";
file = "share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh";
src = pkgs.zsh-fast-syntax-highlighting;
}
@rollschild if the proposed solution works for you, I recommend closing the ticket :+1:
Issue description
Hi community,
I recently switched to home-manager and moved my
zsh
andoh-my-zsh
configs to.config/nixpkgs/home.nix
, like so;However, after doing this, the nix auto completion does not work anymore, meaning, if I type
home-manager swi
it won't auto complete tohome-manager switch
anymore. When I installed system-level, this used to work, like this in/etc/nixos/cofiguration.nix
:Could somebody please help me on this? Thanks!
Technical details