From 75260eaa53b23e8cedb4874d215fa7c94c92e521 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 25 Nov 2024 19:44:37 -0800 Subject: [PATCH] feat: Make folder match mod name; Add type signatures --- lib/{keymaps => keys}/default.nix | 4 ++++ 1 file changed, 4 insertions(+) rename lib/{keymaps => keys}/default.nix (62%) diff --git a/lib/keymaps/default.nix b/lib/keys/default.nix similarity index 62% rename from lib/keymaps/default.nix rename to lib/keys/default.nix index fc92b4b..dd59d91 100644 --- a/lib/keymaps/default.nix +++ b/lib/keys/default.nix @@ -1,5 +1,6 @@ _: { keys = rec { + ## [String] | String -> String -> String -> String -> AttrSet mk = mode: key: action: desc: { inherit mode key action; options = { @@ -8,15 +9,18 @@ _: { }; }; + ## [String] | String -> String -> String -> AttrSet mk' = mode: key: action: mk mode key action null; + ## [String] | String -> String -> String -> String -> AttrSet -> AttrSet mkWithOpts = mode: key: action: desc: opts: (mk mode key action desc) // { options = opts; }; + ## [String] | String -> String -> String -> AttrSet -> AttrSet mkWithOpts' = mode: key: action: opts: mkWithOpts mode key action null opts; };