esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
633 stars 113 forks source link

Apply Config to Nested Diagrams #408

Open zedseven opened 1 year ago

zedseven commented 1 year ago

I have a config set like this (dark theme):

!include https://raw.githubusercontent.com/patrik-csak/one-dark-plantuml-theme/main/theme.puml

This works great for most diagrams, but when I have nested (included) ones, it does not:

@startuml

start

:some diagram stuff...;
note right
{{
   !include some-other-diagram.puml
}}
endnote
:some more diagram stuff...;

stop

@enduml

In the above example, the main diagram will have my theme applied, but the nested one inside the note will not.

This is an issue because my diagram has one (dark) theme, and the nested diagrams are bright white.

I'm opening the issue here because it seems like the plugin is what injects the config parameters, but if not, feel free to let me know, and I'll close it.