mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 11:55:17 +02:00
plantuml-syntax: package option
This commit is contained in:
parent
38daeb1843
commit
b25eeb16ad
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue