summaryrefslogtreecommitdiffstats
path: root/modules/plugins/utility/fzf-lua/fzf-lua.nix
blob: 0b242864eb8162b9ca2fafb48a49eb24319111ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  config,
  lib,
  pkgs,
  ...
}: let
  inherit (lib.types) enum str;
  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 {
        type = str;
        default = "${lib.getExe pkgs.fzf}";
        description = "Path to fzf executable";
      };
      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 to use";
    };
  };
}