27 lines
507 B
Nix
27 lines
507 B
Nix
|
_: {
|
||
|
keys = rec {
|
||
|
mkKeymap = mode: key: action: desc: {
|
||
|
inherit mode key action;
|
||
|
options = {
|
||
|
inherit desc;
|
||
|
silent = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
mkKeymap' =
|
||
|
mode: key: action:
|
||
|
mkKeymap mode key action null;
|
||
|
|
||
|
mkKeymapWithOpts =
|
||
|
mode: key: action: desc: opts:
|
||
|
(mkKeymap mode key action desc)
|
||
|
// {
|
||
|
options = opts;
|
||
|
};
|
||
|
|
||
|
mkKeymapWithOpts' =
|
||
|
mode: key: action: opts:
|
||
|
mkKeymapWithOpts mode key action null opts;
|
||
|
};
|
||
|
}
|