From 5ae64d68825155637cdc92b5c4891258f90e8f81 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 22:39:27 +0100 Subject: [PATCH] telescope: package option --- plugins/telescope/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/telescope/default.nix b/plugins/telescope/default.nix index 46d1ba3a..45c65f49 100644 --- a/plugins/telescope/default.nix +++ b/plugins/telescope/default.nix @@ -18,6 +18,12 @@ in options.plugins.telescope = { enable = mkEnableOption "Enable telescope.nvim"; + package = mkOption { + type = types.package; + default = pkgs.vimPlugins.telescope-nvim; + description = "Plugin to use for telescope.nvim"; + }; + highlightTheme = mkOption { type = types.nullOr types.str; description = "The colorscheme to use for syntax highlighting"; @@ -53,7 +59,7 @@ in extraPackages = [ pkgs.bat ]; extraPlugins = with pkgs.vimPlugins; [ - telescope-nvim + cfg.package plenary-nvim popup-nvim ];