From 58d08b20df65ee03f4ac264fa987a0678214a3b3 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 23:23:47 +0100 Subject: [PATCH] notify: package option --- plugins/utils/notify.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/utils/notify.nix b/plugins/utils/notify.nix index eecf0362..1819c90e 100644 --- a/plugins/utils/notify.nix +++ b/plugins/utils/notify.nix @@ -12,6 +12,12 @@ in options.plugins.notify = { enable = mkEnableOption "Enable notify"; + package = mkOption { + type = types.package; + default = pkgs.vimPlugins.nvim-notify; + description = "Plugin to use for notify"; + }; + stages = mkOption { type = types.nullOr (types.enum [ "fade_in_slide_out" "fade" "slide" "static" ]); description = "Animation style"; @@ -64,7 +70,7 @@ in }; in mkIf cfg.enable { - extraPlugins = [ pkgs.vimPlugins.nvim-notify ]; + extraPlugins = [ cfg.package ]; extraConfigLua = '' vim.notify = require('notify'); require('notify').setup(${helpers.toLuaObject setupOptions})