neovim-flake/modules/plugins/utility/fzf-lua/fzf-lua.nix

44 lines
1,018 B
Nix
Raw Permalink Normal View History

2025-01-17 21:53:44 +01:00
{
config,
lib,
pkgs,
2025-01-17 21:53:44 +01:00
...
}: let
2025-04-06 04:46:56 +00:00
inherit (lib.types) enum str;
2025-01-17 21:53:44 +01:00
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption borderType;
in {
options.vim.fzf-lua = {
enable = mkEnableOption "fzf-lua";
setupOpts = mkPluginSetupOption "fzf-lua" {
fzf_bin = mkOption {
2025-04-06 04:46:56 +00:00
type = str;
default = "${lib.getExe pkgs.fzf}";
2025-04-06 04:46:56 +00:00
description = "Path to fzf executable";
};
2025-01-17 21:53:44 +01:00
winopts.border = mkOption {
type = borderType;
default = config.vim.ui.borders.globalStyle;
description = "Border type for the fzf-lua picker window";
2025-01-17 21:53:44 +01: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";
description = "The configuration profile to use";
};
2025-01-17 21:53:44 +01:00
};
}