From 714c25f5eae5a8a4f3cb2d98427520fdd44bf3ab Mon Sep 17 00:00:00 2001 From: pegasust Date: Fri, 30 Dec 2022 03:36:29 -0700 Subject: [PATCH] gamer moves for zsh-vi-mode; funny: nix mono-repo is not really a thing. That's because nix flake uses the git hash as /nix/store/ lol. --- nix-conf/home-manager/base/shells.nix | 3 +++ nix-conf/home-manager/flake.lock | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nix-conf/home-manager/base/shells.nix b/nix-conf/home-manager/base/shells.nix index a196575..071deac 100644 --- a/nix-conf/home-manager/base/shells.nix +++ b/nix-conf/home-manager/base/shells.nix @@ -96,6 +96,9 @@ in # VI_MODE_RESET_PROMPT_ON_MODE_CHANGE = true; # VI_MODE_SET_CURSOR = true; # ZVM_VI_ESCAPE_BINDKEY = ""; + ZVM_READKEY_ENGINE="$ZVM_READKEY_ENGINE_NEX"; + ZVM_KEYTIMEOUT=0.004; # 40ms, or subtly around 25 FPS. I'm a gamer :) + ZVM_ESCAPE_KEYTIMEOUT=0.004; # 40ms, or subtly around 25 FPS. I'm a gamer :) }; initExtra = (cfg.shellInitExtra or "") + '' source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh diff --git a/nix-conf/home-manager/flake.lock b/nix-conf/home-manager/flake.lock index 84a4e87..d0c5593 100644 --- a/nix-conf/home-manager/flake.lock +++ b/nix-conf/home-manager/flake.lock @@ -90,11 +90,11 @@ "locked": { "lastModified": 1, "narHash": "sha256-KP+2qdZlhmRkrafuuEofg7YnNdVmGV95ipvpuqmJneI=", - "path": "/nix/store/lla48fa225m9f1aisby3zrh860j781gy-source/out-of-tree/nixGL", + "path": "/nix/store/qprlnx490gv6nylwhgq1a4i28pa9rjii-source/out-of-tree/nixGL", "type": "path" }, "original": { - "path": "/nix/store/lla48fa225m9f1aisby3zrh860j781gy-source/out-of-tree/nixGL", + "path": "/nix/store/qprlnx490gv6nylwhgq1a4i28pa9rjii-source/out-of-tree/nixGL", "type": "path" } },