2023-11-07 01:50:27 +01:00
|
|
|
{lib, ...}: let
|
2024-03-24 01:14:39 +01:00
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
|
|
inherit (lib.types) nullOr str;
|
2023-11-07 01:50:27 +01:00
|
|
|
in {
|
2023-04-05 01:14:13 +02:00
|
|
|
options.vim.utility.motion.leap = {
|
2023-06-05 22:10:25 +02:00
|
|
|
enable = mkEnableOption "leap.nvim plugin (easy motion)";
|
2023-04-11 15:37:24 +02:00
|
|
|
|
|
|
|
mappings = {
|
|
|
|
leapForwardTo = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = nullOr str;
|
2023-04-11 15:37:24 +02:00
|
|
|
description = "Leap forward to";
|
2024-10-14 19:33:45 +02:00
|
|
|
default = "<leader>ss";
|
2023-04-11 15:37:24 +02:00
|
|
|
};
|
|
|
|
leapBackwardTo = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = nullOr str;
|
2023-04-11 15:37:24 +02:00
|
|
|
description = "Leap backward to";
|
2024-10-14 19:33:45 +02:00
|
|
|
default = "<leader>sS";
|
2023-04-11 15:37:24 +02:00
|
|
|
};
|
|
|
|
leapForwardTill = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = nullOr str;
|
2023-04-11 15:37:24 +02:00
|
|
|
description = "Leap forward till";
|
2024-10-14 19:33:45 +02:00
|
|
|
default = "<leader>sx";
|
2023-04-11 15:37:24 +02:00
|
|
|
};
|
|
|
|
leapBackwardTill = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = nullOr str;
|
2023-04-11 15:37:24 +02:00
|
|
|
description = "Leap backward till";
|
2024-10-14 19:33:45 +02:00
|
|
|
default = "<leader>sX";
|
2023-04-11 15:37:24 +02:00
|
|
|
};
|
|
|
|
leapFromWindow = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = nullOr str;
|
2023-04-11 15:37:24 +02:00
|
|
|
description = "Leap from window";
|
|
|
|
default = "gs";
|
|
|
|
};
|
|
|
|
};
|
2023-04-05 01:14:13 +02:00
|
|
|
};
|
|
|
|
}
|