From dcdbf882425595f7097d4284d2964c8bcb462037 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sat, 11 Sep 2021 13:34:35 +0200 Subject: [PATCH] added zsh-autosuggestions --- flake.lock | 19 ++++++++++++++++++- flake.nix | 4 ++++ modules/zsh.nix | 9 ++------- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 5037975..390f8f7 100644 --- a/flake.lock +++ b/flake.lock @@ -106,7 +106,8 @@ "nur": "nur", "picom": "picom", "unstable": "unstable", - "utils": "utils" + "utils": "utils", + "zsh-autosuggestions": "zsh-autosuggestions" } }, "unstable": { @@ -143,6 +144,22 @@ "repo": "flake-utils-plus", "type": "github" } + }, + "zsh-autosuggestions": { + "flake": false, + "locked": { + "lastModified": 1622844304, + "narHash": "sha256-KLUYpUu4DHRumQZ3w59m9aTW6TBKMCXl2UcKi4uMd7w=", + "owner": "zsh-users", + "repo": "zsh-autosuggestions", + "rev": "a411ef3e0992d4839f0732ebeb9823024afaaaa8", + "type": "github" + }, + "original": { + "owner": "zsh-users", + "repo": "zsh-autosuggestions", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 7f52ebf..51d5200 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,10 @@ url = "github:jonaburg/picom"; flake = false; }; + zsh-autosuggestions = { + url = "github:zsh-users/zsh-autosuggestions"; + flake = false; + }; }; outputs = inputs@{ self, utils, home-manager, nixpkgs, ...}: diff --git a/modules/zsh.nix b/modules/zsh.nix index ebd72b4..7bc3073 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: let base = (home: { @@ -16,12 +16,7 @@ let plugins = [ { name = "zsh-autosuggestions"; - src = pkgs.fetchFromGitHub { - owner = "zsh-users"; - repo = "zsh-autosuggestions"; - rev = "v0.4.0"; - sha256 = "0z6i9wjjklb4lvr7zjhbphibsyx51psv50gm07mbb0kj9058j6kc"; - }; + src = inputs.zsh-autosuggestions; } { name = "zsh-syntax-highlighting";