From b25eeb16ad90a477ad6fbbc2eb3954f42230c099 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 21:45:40 +0100 Subject: [PATCH] plantuml-syntax: package option --- plugins/languages/plantuml-syntax.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/languages/plantuml-syntax.nix b/plugins/languages/plantuml-syntax.nix index edfcab53..a4fef1de 100644 --- a/plugins/languages/plantuml-syntax.nix +++ b/plugins/languages/plantuml-syntax.nix @@ -7,6 +7,13 @@ with lib; { options.plugins.plantuml-syntax = { enable = mkEnableOption "Enable plantuml syntax support"; + + package = mkOption { + type = types.package; + default = pkgs.vimPlugins.plantuml-syntax; + description = "Plugin to use for plantuml-syntax"; + }; + setMakeprg = mkOption { type = types.bool; default = true; @@ -23,7 +30,7 @@ with lib; { cfg = config.plugins.plantuml-syntax; in mkIf cfg.enable { - extraPlugins = with pkgs.vimPlugins; [plantuml-syntax]; + extraPlugins = [ cfg.package ]; globals = { plantuml_set_makeprg = cfg.setMakeprg;