Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set !include to work with working directory? #16

Closed
cprn opened this issue Oct 16, 2019 · 1 comment
Closed

How do I set !include to work with working directory? #16

cprn opened this issue Oct 16, 2019 · 1 comment
Labels

Comments

@cprn
Copy link

cprn commented Oct 16, 2019

I tried to set g:plantuml_previewer#viewer_path to working directory but it doesn't copy index.html there because the directory already exists. In that case I don't understand how to make !include work when multiple diagrams share definitions.

Directory content:

.
├── shared.puml
└── main.puml

shared.puml:

actor a as "**Bank's Customer**\n\n//Description translated to many languages.//"
rectangle b as "**Local Bank**\n\n//Description also translated to many languages.//"

main.puml:

@startuml
!include shared.puml
a -> b
@enduml

Opening main.puml in VIM and calling :PlantumlOpen without setting the #viewer_path generates this error:

image

With #viewer_path set to current directory calling :PlantumlOpen makes browser complain it cannot find index.html.

@weirongxu
Copy link
Owner

weirongxu commented Oct 17, 2019

Fixed in the latest version.

Unless you want to change the viewer directory, don't need to set the #viewer_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants