From 2f547fc3e9433261ea182954a9a14b8daa2e73df Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 14 Sep 2026 14:54:31 +0200 Subject: [PATCH] Highlighting and rendering of PlantUML files --- .config/nvim/lua/plugins/plantuml.lua | 13 +++++++++++++ .config/nvim/lua/plugins/plantuml_highlighting.lua | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 .config/nvim/lua/plugins/plantuml.lua create mode 100644 .config/nvim/lua/plugins/plantuml_highlighting.lua diff --git a/.config/nvim/lua/plugins/plantuml.lua b/.config/nvim/lua/plugins/plantuml.lua new file mode 100644 index 0000000..5017be4 --- /dev/null +++ b/.config/nvim/lua/plugins/plantuml.lua @@ -0,0 +1,13 @@ +return { + "goropikari/plantuml.nvim", + dependencies = { + "goropikari/LibDeflate.nvim", + }, + opts = { + -- default opts + base_url = "https://www.plantuml.com/plantuml", + reload_events = { "BufWritePre" }, + viewer = "xdg-open", -- Image viewer for non-ASCII exports + docker_image = "plantuml/plantuml-server:tomcat", + }, +} diff --git a/.config/nvim/lua/plugins/plantuml_highlighting.lua b/.config/nvim/lua/plugins/plantuml_highlighting.lua new file mode 100644 index 0000000..d5a2a3e --- /dev/null +++ b/.config/nvim/lua/plugins/plantuml_highlighting.lua @@ -0,0 +1,4 @@ +return { + "aklt/plantuml-syntax", + opts = {}, +}