From ab02c4bdfe8c2e4d4361348a667633942ab2bcda Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sat, 11 Sep 2021 13:35:44 +0200 Subject: [PATCH] added zsh syntax highlighting --- flake.lock | 19 ++++++++++++++++++- flake.nix | 4 ++++ modules/zsh.nix | 7 +------ 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 390f8f7..4aaab8b 100644 --- a/flake.lock +++ b/flake.lock @@ -107,7 +107,8 @@ "picom": "picom", "unstable": "unstable", "utils": "utils", - "zsh-autosuggestions": "zsh-autosuggestions" + "zsh-autosuggestions": "zsh-autosuggestions", + "zsh-syntax-highlighting": "zsh-syntax-highlighting" } }, "unstable": { @@ -160,6 +161,22 @@ "repo": "zsh-autosuggestions", "type": "github" } + }, + "zsh-syntax-highlighting": { + "flake": false, + "locked": { + "lastModified": 1629459010, + "narHash": "sha256-m+gKQXNRYTpraWDXVMTU6UPJFivcyhOw3dNofFR4cyU=", + "owner": "zsh-users", + "repo": "zsh-syntax-highlighting", + "rev": "6e0e950154a4c6983d9e077ed052298ad9126144", + "type": "github" + }, + "original": { + "owner": "zsh-users", + "repo": "zsh-syntax-highlighting", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 51d5200..61b3252 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,10 @@ url = "github:zsh-users/zsh-autosuggestions"; flake = false; }; + zsh-syntax-highlighting = { + url = "github:zsh-users/zsh-syntax-highlighting"; + flake = false; + }; }; outputs = inputs@{ self, utils, home-manager, nixpkgs, ...}: diff --git a/modules/zsh.nix b/modules/zsh.nix index 7bc3073..61d8581 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -20,12 +20,7 @@ let } { name = "zsh-syntax-highlighting"; - src = pkgs.fetchFromGitHub { - owner = "zsh-users"; - repo = "zsh-syntax-highlighting"; - rev = "0e1bb14452e3fc66dcc81531212e1061e02c1a61"; - sha256 = "09ncmyqlk9a3h470z0wgbkrznb5zyc9dj96011wm89rdxc1irxk2"; - }; + src = inputs.zsh-syntax-highlighting; } ]; };