From 75307ad324a9d720f6b3e645e8638b7913e88f0f Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Wed, 4 Aug 2021 22:19:20 +0200 Subject: [PATCH] Fix zsh autocomplete --- users/default.nix | 1 + users/froidmpa/zsh.nix | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/users/default.nix b/users/default.nix index ef0ec72..886ac5b 100644 --- a/users/default.nix +++ b/users/default.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: { + environment.pathsToLink = [ "/share/zsh" ]; home-manager.users.froidmpa = { pkgs, config, ... }: { nixpkgs.config = { allowUnfree = true; diff --git a/users/froidmpa/zsh.nix b/users/froidmpa/zsh.nix index ef187b8..11ab76f 100644 --- a/users/froidmpa/zsh.nix +++ b/users/froidmpa/zsh.nix @@ -5,7 +5,9 @@ save = 50000; size = 50000; }; + enableCompletion = true; enableAutosuggestions = true; + enableSyntaxHighlighting = true; initExtra = '' autoload -Uz up-line-or-beginning-search down-line-or-beginning-search zle -N up-line-or-beginning-search @@ -25,9 +27,12 @@ }; plugins = [ { - name = "zsh-syntax-highlighting"; - file = "share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"; - src = "${pkgs.zsh-syntax-highlighting}"; + name = "nix-zsh-completions"; + src = pkgs.nix-zsh-completions; + } + { + name = "zsh-completions"; + src = pkgs.zsh-completions; } ]; }