mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
23 lines
380 B
Nix
23 lines
380 B
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.presets.remaps.half-page-scroll;
|
|
in
|
|
{
|
|
options.presets.remaps.half-page-scroll = {
|
|
enable = lib.mkEnableOption "half page scroll";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
keymaps = [
|
|
{
|
|
key = "<C-d>";
|
|
action = "<C-d>zz";
|
|
}
|
|
{
|
|
key = "<C-u>";
|
|
action = "<C-u>zz";
|
|
}
|
|
];
|
|
};
|
|
}
|