nvim-soil is a minimal plugin written in Lua for Plant UML.
Java
andsxiv
are required to be installed in order to use this plugin.plantuml
is optional to be installed or used in jar format.- Recommended for Plant UML syntax highlighting nvim-whisky colorscheme
- This plugin has been developed on and for Linux following open source philosophy.
Packer
use 'javiorfo/nvim-soil'
-- Optional for puml syntax highlighting:
use 'javiorfo/nvim-nyctophilia'
Lazy
{ 'javiorfo/nvim-soil', lazy = true, ft = "plantuml" }
-- Optional for puml syntax highlighting:
{ 'javiorfo/nvim-nyctophilia' }
- If
plantuml
is installed you don't need any extra set up. But if wanted to use plantuml jar version you can set it up. - The default image format is PNG.
- The default Plant UML darkmode is set to false.
- Optional configuration in init.vim or init.lua:
require'soil'.setup{
-- If you want to use Plant UML jar version instead of the install version
puml_jar = "/path/to/plantuml.jar",
-- If you want to customize the image showed when running this plugin
image = {
darkmode = false, -- Enable or disable darkmode
format = "png", -- Choose between png or svg
}
}
- Open any yourfile.plantuml, yourfile.pu or yourfile.puml which you want to process and use
:Soil
Neovim command line to generate and open yourfile.png with graphical output. Pressq
to quit the image viewer. - Everytime you update a Plant UML file and run
:Soil
, you'll get an updated image. - The generated image is saved in the same location that your Plant UML file.
NOTE: The colorscheme nox from nvim-nyctophilia is used in this image.