From 2298e766cea731da82b3f33221da667925880238 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 23:06:50 +0100 Subject: [PATCH] dashboard: package option --- plugins/utils/dashboard.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/utils/dashboard.nix b/plugins/utils/dashboard.nix index 7fec95a9..6eb4c97e 100644 --- a/plugins/utils/dashboard.nix +++ b/plugins/utils/dashboard.nix @@ -10,6 +10,12 @@ in plugins.dashboard = { enable = mkEnableOption "Enable dashboard"; + package = { + type = types.package; + default = pkgs.vimPlugins.dashboard-nvim; + description = "Plugin to use for dashboard-nvim"; + }; + header = mkOption { description = "Header text"; type = types.nullOr (types.listOf types.str); @@ -126,7 +132,7 @@ in filteredOptions = filterAttrs (_: v: !isNull v) options; in mkIf cfg.enable { - extraPlugins = [ pkgs.vimPlugins.dashboard-nvim ]; + extraPlugins = [ cfg.package ]; extraConfigLua = '' local dashboard = require("dashboard")