This Neovim plugin allows using PlantUML to render diagrams in real time.
This plugin supports different renderers to display PlantUML's output. Currently, the following renderers are implemented:
- text renderer: An ASCII art renderer using PlantUML's text output.
- imv renderer: Using the
imv
image viewer.
Install with packer:
use { 'https://gitlab.com/itaranto/plantuml.nvim', tag = '*' }
To use this plugin, you'll need PlantUML installed. If using the imv renderer, you'll need to have imv as well.
You should be able to install any of these with your system's package manager, for example, on Arch Linux:
sudo pacman -S plantuml imv
To use the default configuration, do:
require("plantuml").setup()
The default values are:
local _config = {
renderer = 'imv',
}
Alternatively, you can change some of the settings:
require("plantuml").setup({ renderer = 'text' })
Open any file with the .puml
extension and then write it. A new window will be
opened with the resulting diagram.
"If your commit message sucks, I'm not going to accept your pull request."