From 922f237add6482a5108f64c6d4392d2216459c65 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 22:51:51 +0100 Subject: [PATCH] telescope/fzf-native: package option --- plugins/telescope/fzf-native.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/telescope/fzf-native.nix b/plugins/telescope/fzf-native.nix index 978cfe78..0686f8b2 100644 --- a/plugins/telescope/fzf-native.nix +++ b/plugins/telescope/fzf-native.nix @@ -7,6 +7,12 @@ in options.plugins.telescope.extensions.fzf-native = { enable = mkEnableOption "Enable fzf-native"; + package = mkOption { + type = types.package; + default = pkgs.vimPlugins.telescope-fzf-native-nvim; + description = "Plugin to use for telescope extension fzf-native"; + }; + fuzzy = mkOption { type = types.nullOr types.bool; description = "Whether to fuzzy search. False will do exact matching"; @@ -36,7 +42,7 @@ in case_mode = cfg.caseMode; }; in mkIf cfg.enable { - extraPlugins = [ pkgs.vimPlugins.telescope-fzf-native-nvim ]; + extraPlugins = [ cfg.package ]; plugins.telescope.enabledExtensions = [ "fzf" ]; plugins.telescope.extensionConfig."fzf" = configuration;