From 8e2ec493a78cbf1e65933b8b67839eddaa0dbd41 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 23:56:16 +0100 Subject: [PATCH] undotree: package option --- plugins/utils/undotree.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/utils/undotree.nix b/plugins/utils/undotree.nix index 11b36054..5c74cc4b 100644 --- a/plugins/utils/undotree.nix +++ b/plugins/utils/undotree.nix @@ -9,6 +9,12 @@ in plugins.undotree = { enable = mkEnableOption "Enable undotree"; + package = mkOption { + type = types.package; + default = pkgs.vimPlugins.undotree; + description = "Plugin to use for undotree"; + }; + windowLayout = mkOption { type = types.nullOr types.int; default = null; @@ -108,7 +114,7 @@ in }; config = mkIf cfg.enable { - extraPlugins = [ pkgs.vimPlugins.undotree ]; + extraPlugins = [ cfg.package ]; globals = { undotree_WindowLayout = mkIf (cfg.windowLayout != null) cfg.windowLayout;