mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +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
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue