2025-01-26 13:45:58 +03:00
|
|
|
{lib, ...}: let
|
2025-02-24 16:56:15 +03:00
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
2025-01-26 13:45:58 +03:00
|
|
|
inherit (lib.types) enum;
|
2025-02-24 16:56:15 +03:00
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2025-01-26 13:45:58 +03:00
|
|
|
in {
|
|
|
|
options.vim.utility.yanky-nvim = {
|
|
|
|
enable = mkEnableOption ''
|
|
|
|
improved Yank and Put functionalities for Neovim [yanky-nvim]
|
|
|
|
'';
|
|
|
|
|
2025-02-24 16:56:15 +03:00
|
|
|
setupOpts = mkPluginSetupOption "yanky-nvim" {
|
2025-01-26 13:45:58 +03:00
|
|
|
ring.storage = mkOption {
|
|
|
|
type = enum ["shada" "sqlite" "memory"];
|
|
|
|
default = "shada";
|
|
|
|
example = "sqlite";
|
|
|
|
description = ''
|
|
|
|
storage mode for ring values.
|
|
|
|
|
2025-02-24 16:56:15 +03:00
|
|
|
- **shada**: this will save pesistantly using Neovim ShaDa feature.
|
2025-01-26 13:45:58 +03:00
|
|
|
This means that history will be persisted between each session of Neovim.
|
2025-02-24 16:56:15 +03:00
|
|
|
- **memory**: each Neovim instance will have his own history and it will be
|
2025-01-26 13:45:58 +03:00
|
|
|
lost between sessions.
|
2025-02-24 16:56:15 +03:00
|
|
|
- **sqlite**: more reliable than `shada`, requires `sqlite.lua` as a dependency.
|
2025-01-26 13:45:58 +03:00
|
|
|
nvf will add this dependency to `PATH` automatically.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|