2024-10-06 13:35:07 +02:00
|
|
|
{lib, ...}: let
|
2024-03-24 01:14:39 +01:00
|
|
|
inherit (lib.options) mkOption;
|
2024-10-06 13:35:07 +02:00
|
|
|
inherit (lib.types) bool;
|
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2023-11-07 01:50:27 +01:00
|
|
|
in {
|
2023-06-07 13:28:27 +02:00
|
|
|
options.vim.utility.surround = {
|
2023-10-17 12:47:44 +02:00
|
|
|
enable = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = bool;
|
2023-10-17 12:47:44 +02:00
|
|
|
default = false;
|
2024-10-06 13:35:07 +02:00
|
|
|
description = ''
|
|
|
|
nvim-surround: add/change/delete surrounding delimiter pairs with ease.
|
|
|
|
Note that the default mappings deviate from upstreeam to avoid conflicts
|
|
|
|
with nvim-leap.
|
|
|
|
'';
|
2023-10-17 12:47:44 +02:00
|
|
|
};
|
2024-10-06 13:35:07 +02:00
|
|
|
setupOpts = mkPluginSetupOption "nvim-surround" {};
|
|
|
|
|
2023-10-17 12:47:44 +02:00
|
|
|
useVendoredKeybindings = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = bool;
|
2023-10-17 12:47:44 +02:00
|
|
|
default = true;
|
|
|
|
description = "Use alternative set of keybindings that avoids conflicts with other popular plugins, e.g. nvim-leap";
|
|
|
|
};
|
|
|
|
};
|
2023-06-07 13:28:27 +02:00
|
|
|
}
|