2025-01-17 20:53:44 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2025-01-18 09:10:59 +00:00
|
|
|
inherit (lib.types) nullOr enum;
|
2025-01-17 20:53:44 +00:00
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption borderType;
|
|
|
|
in {
|
|
|
|
options.vim.fzf-lua = {
|
|
|
|
enable = mkEnableOption "fzf-lua";
|
2025-01-18 09:10:59 +00:00
|
|
|
setupOpts = mkPluginSetupOption "fzf-lua" {
|
2025-01-17 20:53:44 +00:00
|
|
|
winopts.border = mkOption {
|
|
|
|
type = borderType;
|
|
|
|
default = config.vim.ui.borders.globalStyle;
|
2025-01-17 21:02:25 +00:00
|
|
|
description = "Border type for the fzf-lua picker window";
|
2025-01-17 20:53:44 +00:00
|
|
|
};
|
|
|
|
};
|
2025-01-18 09:10:59 +00:00
|
|
|
profile = mkOption {
|
|
|
|
type = enum [
|
|
|
|
"default"
|
|
|
|
"default-title"
|
|
|
|
"fzf-native"
|
|
|
|
"fzf-tmux"
|
|
|
|
"fzf-vim"
|
|
|
|
"max-perf"
|
|
|
|
"telescope"
|
|
|
|
"skim"
|
|
|
|
"borderless"
|
|
|
|
"borderless-full"
|
|
|
|
"border-fused"
|
|
|
|
];
|
|
|
|
default = "default";
|
2025-01-18 09:12:33 +00:00
|
|
|
description = "The configuration profile to use";
|
2025-01-18 09:10:59 +00:00
|
|
|
};
|
2025-01-17 20:53:44 +00:00
|
|
|
};
|
|
|
|
}
|