mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
utility/fzf-lua: add profile option, fix name
This commit is contained in:
parent
775963dd9d
commit
ba55a1b54a
2 changed files with 20 additions and 2 deletions
|
@ -11,6 +11,6 @@ in {
|
||||||
package = "fzf-lua";
|
package = "fzf-lua";
|
||||||
cmd = ["FzfLua"];
|
cmd = ["FzfLua"];
|
||||||
setupModule = "fzf-lua";
|
setupModule = "fzf-lua";
|
||||||
inherit (cfg) setupOpts;
|
setupOpts = cfg.setupOpts // {"@1" = cfg.profile;};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,17 +3,35 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (lib.types) nullOr enum;
|
||||||
inherit (lib.options) mkEnableOption mkOption;
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption borderType;
|
inherit (lib.nvim.types) mkPluginSetupOption borderType;
|
||||||
in {
|
in {
|
||||||
options.vim.fzf-lua = {
|
options.vim.fzf-lua = {
|
||||||
enable = mkEnableOption "fzf-lua";
|
enable = mkEnableOption "fzf-lua";
|
||||||
setupOpts = mkPluginSetupOption "mini.ai" {
|
setupOpts = mkPluginSetupOption "fzf-lua" {
|
||||||
winopts.border = mkOption {
|
winopts.border = mkOption {
|
||||||
type = borderType;
|
type = borderType;
|
||||||
default = config.vim.ui.borders.globalStyle;
|
default = config.vim.ui.borders.globalStyle;
|
||||||
description = "Border type for the fzf-lua picker window";
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue