weirongxu / plantuml-previewer.vim

Vim / Neovim plugin for preview PlantUML
MIT License
266 stars 29 forks source link

Feature Request: `PlantumlToggle` command #52

Closed thetic closed 3 years ago

thetic commented 3 years ago

I would like to use single key map both to open and to stop the preview, but (best I can tell) there is no way to read the plugin's state from the buffer.

weirongxu commented 3 years ago

Do you mean call PlantumlOpen and PlantumlStop depending on the state?

thetic commented 3 years ago

Yes, exactly.

weirongxu commented 3 years ago

But this will cause duplicate tabs to open in the browser when you execute PlantumlToggle continuously.