neovim-flake/modules/plugins/utility/motion/leap/leap.nix

37 lines
916 B
Nix
Raw Permalink Normal View History

{lib, ...}: let
2024-03-24 01:14:39 +01:00
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) nullOr str;
in {
2023-04-05 01:14:13 +02:00
options.vim.utility.motion.leap = {
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";
default = "s";
};
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";
default = "S";
};
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";
default = "x";
};
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";
default = "X";
};
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
};
}