- macOS Ventura on M1
- Google Chrome
I have tried to install a PlantUML-Preview in (Neo)Vim with this plantuml-previewer.vim plugin.
There are described some dependencies:
Java -> I've done
brew install java
Graphviz -> I've done
brew install graphviz
On PlantUML home they have information about the Graphviz installation where they say, the dot executable is expected in
/usr/local/bin/dot. I do
which dot with the result
So I've done a symlink with
sudo ln -s /opt/homebrew/bin/dot /usr/local/bin/dot with the result in
dot -> /opt/homebrew/bin/dot.
After that, I've follow the instructions on plantuml-previewer.vim again and put the rest to my
Plug 'aklt/plantuml-syntax' Plug 'tyru/open-browser.vim' Plug 'weirongxu/plantuml-previewer.vim' au FileType plantuml let g:plantuml_previewer#plantuml_jar_path = get( \ matchlist(system('cat `which plantuml` | grep plantuml.jar'), '\v.*\s[''"]?(\S+plantuml\.jar).*'), \ 1, \ 0 \)
:PlugInstall (everything was installed), then I've saved
.vimrc, closed and reran iTerm2.
I've created a
*puml with content and start the preview with
Google Chrome get opened on
file:///Users/itsme/.vim/plugged/plantuml-previewer.vim/viewer/dist/index.html but it shows only the PlantUML canvas without the diagram.
Does anybody see, what I've done wrong or has an idea where I can start to search what's going wrong?
Kind regards, Manny