diff --git a/modules/plugins/utility/fzf-lua/config.nix b/modules/plugins/utility/fzf-lua/config.nix index 558f3cd1..85425fc7 100644 --- a/modules/plugins/utility/fzf-lua/config.nix +++ b/modules/plugins/utility/fzf-lua/config.nix @@ -11,6 +11,6 @@ in { package = "fzf-lua"; cmd = ["FzfLua"]; setupModule = "fzf-lua"; - inherit (cfg) setupOpts; + setupOpts = cfg.setupOpts // {"@1" = cfg.profile;}; }; } diff --git a/modules/plugins/utility/fzf-lua/fzf-lua.nix b/modules/plugins/utility/fzf-lua/fzf-lua.nix index 3b45ab02..5657f666 100644 --- a/modules/plugins/utility/fzf-lua/fzf-lua.nix +++ b/modules/plugins/utility/fzf-lua/fzf-lua.nix @@ -3,17 +3,35 @@ lib, ... }: let + inherit (lib.types) nullOr enum; inherit (lib.options) mkEnableOption mkOption; inherit (lib.nvim.types) mkPluginSetupOption borderType; in { options.vim.fzf-lua = { enable = mkEnableOption "fzf-lua"; - setupOpts = mkPluginSetupOption "mini.ai" { + setupOpts = mkPluginSetupOption "fzf-lua" { winopts.border = mkOption { type = borderType; default = config.vim.ui.borders.globalStyle; description = "Border type for the fzf-lua picker window"; }; }; + 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 ot use"; + }; }; }