Fix zsh autocomplete

This commit is contained in:
Paul-Henri Froidmont 2021-08-04 22:19:20 +02:00
parent d99b53b2f2
commit 75307ad324
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.pathsToLink = [ "/share/zsh" ];
home-manager.users.froidmpa = { pkgs, config, ... }: { home-manager.users.froidmpa = { pkgs, config, ... }: {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;

View file

@ -5,7 +5,9 @@
save = 50000; save = 50000;
size = 50000; size = 50000;
}; };
enableCompletion = true;
enableAutosuggestions = true; enableAutosuggestions = true;
enableSyntaxHighlighting = true;
initExtra = '' initExtra = ''
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search zle -N up-line-or-beginning-search
@ -25,9 +27,12 @@
}; };
plugins = [ plugins = [
{ {
name = "zsh-syntax-highlighting"; name = "nix-zsh-completions";
file = "share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"; src = pkgs.nix-zsh-completions;
src = "${pkgs.zsh-syntax-highlighting}"; }
{
name = "zsh-completions";
src = pkgs.zsh-completions;
} }
]; ];
} }