nvf/modules/plugins/utility/motion/leap/leap.nix

37 lines
952 B
Nix
Raw Normal View History

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