Merge pull request #803 from venkyr77/fzf-lua-type-fix

utility/fzf-lua: fix type for fzf-bin
This commit is contained in:
raf 2025-04-06 05:19:35 +00:00 committed by GitHub
commit d407efa323
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (lib.types) enum package; inherit (lib.types) enum str;
inherit (lib.options) mkEnableOption mkOption; inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption borderType; inherit (lib.nvim.types) mkPluginSetupOption borderType;
in { in {
@ -12,9 +12,9 @@ in {
enable = mkEnableOption "fzf-lua"; enable = mkEnableOption "fzf-lua";
setupOpts = mkPluginSetupOption "fzf-lua" { setupOpts = mkPluginSetupOption "fzf-lua" {
fzf_bin = mkOption { fzf_bin = mkOption {
type = package; type = str;
default = "${lib.getExe pkgs.fzf}"; default = "${lib.getExe pkgs.fzf}";
description = "fzf package to use"; description = "Path to fzf executable";
}; };
winopts.border = mkOption { winopts.border = mkOption {
type = borderType; type = borderType;