mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 03:25:58 +01:00
36 lines
916 B
Nix
36 lines
916 B
Nix
{lib, ...}: let
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
inherit (lib.types) nullOr str;
|
|
in {
|
|
options.vim.utility.motion.leap = {
|
|
enable = mkEnableOption "leap.nvim plugin (easy motion)";
|
|
|
|
mappings = {
|
|
leapForwardTo = mkOption {
|
|
type = nullOr str;
|
|
description = "Leap forward to";
|
|
default = "s";
|
|
};
|
|
leapBackwardTo = mkOption {
|
|
type = nullOr str;
|
|
description = "Leap backward to";
|
|
default = "S";
|
|
};
|
|
leapForwardTill = mkOption {
|
|
type = nullOr str;
|
|
description = "Leap forward till";
|
|
default = "x";
|
|
};
|
|
leapBackwardTill = mkOption {
|
|
type = nullOr str;
|
|
description = "Leap backward till";
|
|
default = "X";
|
|
};
|
|
leapFromWindow = mkOption {
|
|
type = nullOr str;
|
|
description = "Leap from window";
|
|
default = "gs";
|
|
};
|
|
};
|
|
};
|
|
}
|