Diagram preview
Having syntax highlighting is nice. But without live preview, this plugin's kind of minimal. It's a lot more preferable right now to paste things into the d2 playground or use the VSCode extension instead, so there's live visual feedback of changes being made.
Hello there!
I absolutely want to have diagram preview working via the extension but I'm having difficulty finding time to work on this at the moment.
What is needed is to figure out a way to wrap D2 into an LSP and use that in the extension to trigger things from Zed events. Only then the extension could, for example, save the output to a temp folder and ask Zed to open it. Not sure this is the best approach, but I'm open to suggestions and implementations.
Today Zed Preview 0.194.0 was released with a feature that may make this feature easier to implement: https://github.com/zed-industries/zed/pull/32694