Umple visualisation plugin for Neovim; allows for keybound compilation of .ump files into tmpfile diagrams for instantaneous visualisation in a vertical split-pane, all within Neovim!
- No files are saved (only temporary ones)
- No Internet connection required! (unlike Umple Online)
- image.nvim and its dependencies for image visualisation within nvim.
- Note: this script works well when kitty is used as a backend, so consider installing kitty and setting it as backend default in image.nvim (this works even when using iterm2 or other terminals!)
- umple
- graphviz
- Not necessary, but pairs nicely with umple.nvim
The program assumes that these (except umple.nvim) have been installed/configured.
Navigate into your ~/.config/nvim/ directory and clone this repo:
cd ~/.config/nvim/
git clone https://github.com/jacob-sauve/umple-offline/
Move umple.lua into your ~/.config/nvim/ftplugin folder:
mkdir -p ~/.config/nvim/ftplugin
mv -i ~/.config/nvim/umple-offline/ftplugin/umple.lua ~/.config/nvim/ftplugin/umple.lua
rm -r ~/.config/nvim/umple-offline/
You should be all set!
If you have not already, be sure to set a <leader> key somewhere within your nvim config to be able to use the hotkeys; for instance mine is the space bar:
vim.g.mapleader = " "
<leader>ucd--> generates and opens an Umple Class Diagram of the active file (the one in the buffer when the command is called)<leader>usm--> generates and opens an Umple State Machine of the active file<leader>ugj--> generates Java code corresponding to the active file into current directory
In their unabridged form, i.e. without the keybinds from ftplugin/umple.lua:
:UmpleClassDiagram--> same as<leader>ucdabove:UmpleStateMachine--> same as<leader>usmabove:GenerateJava--> same sa<leader>ugjabove