mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-24 19:25:31 +02:00
telescope/fzf-native: package option
This commit is contained in:
parent
46baee2ece
commit
922f237add
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue