From 11fa1fc7ad549a9adef3984525d34a70349e2d21 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 23:12:15 +0100 Subject: [PATCH] easyescape: package option --- plugins/utils/easyescape.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/utils/easyescape.nix b/plugins/utils/easyescape.nix index 8604f64d..3c75ebd5 100644 --- a/plugins/utils/easyescape.nix +++ b/plugins/utils/easyescape.nix @@ -8,11 +8,17 @@ in options = { plugins.easyescape = { enable = mkEnableOption "Enable easyescape"; + + package = mkOption { + type = types.package; + default = pkgs.vimPlugins.vim-easyescape; + description = "Plugin to use for easyescape"; + }; }; }; config = mkIf cfg.enable { - extraPlugins = with pkgs.vimPlugins; [ - vim-easyescape + extraPlugins = [ + cfg.package ]; }; }