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; {
|
with lib; {
|
||||||
options.plugins.plantuml-syntax = {
|
options.plugins.plantuml-syntax = {
|
||||||
enable = mkEnableOption "Enable plantuml syntax support";
|
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 {
|
setMakeprg = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -23,7 +30,7 @@ with lib; {
|
||||||
cfg = config.plugins.plantuml-syntax;
|
cfg = config.plugins.plantuml-syntax;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = with pkgs.vimPlugins; [plantuml-syntax];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
plantuml_set_makeprg = cfg.setMakeprg;
|
plantuml_set_makeprg = cfg.setMakeprg;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue