utility/fzf-lua: add profile option, fix name

This commit is contained in:
LilleAila 2025-01-18 10:10:59 +01:00 committed by Ching Pei Yang
parent 775963dd9d
commit ba55a1b54a
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
2 changed files with 20 additions and 2 deletions

View file

@ -11,6 +11,6 @@ in {
package = "fzf-lua";
cmd = ["FzfLua"];
setupModule = "fzf-lua";
inherit (cfg) setupOpts;
setupOpts = cfg.setupOpts // {"@1" = cfg.profile;};
};
}

View file

@ -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";
};
};
}