From c129c536858b40d03d983608b971b1f1c446f9c4 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 17 Nov 2024 19:31:28 +0100 Subject: [PATCH] lib/binds: add simpler keymap helper --- lib/binds.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/binds.nix b/lib/binds.nix index 22bca735..15791b65 100644 --- a/lib/binds.nix +++ b/lib/binds.nix @@ -91,6 +91,8 @@ lua = true; desc = binding.description; }; + + mkKeymap = mode: key: action: opt: opt // {inherit mode key action;}; }; in binds