Add plantuml support to nvim, even rendering by command :Soil

This commit is contained in:
2025-09-05 14:06:28 +02:00
parent 34ccc9e424
commit 8adf1673b9
2 changed files with 40 additions and 0 deletions

View File

@@ -20,10 +20,12 @@
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
"nvim-lspconfig": { "branch": "master", "commit": "5f550bbb4d58bb2bfbbed4633fc69c3f0eccaf3a" }, "nvim-lspconfig": { "branch": "master", "commit": "5f550bbb4d58bb2bfbbed4633fc69c3f0eccaf3a" },
"nvim-soil": { "branch": "master", "commit": "e464c5532b2737e2a489526bdc984e1b17d6ae26" },
"nvim-tree.lua": { "branch": "master", "commit": "fefa335f1c8f690eb668a1efd18ee4fc6d64cd3e" }, "nvim-tree.lua": { "branch": "master", "commit": "fefa335f1c8f690eb668a1efd18ee4fc6d64cd3e" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"nvim-web-devicons": { "branch": "master", "commit": "f66cdfef5e84112045b9ebc3119fee9bddb3c687" }, "nvim-web-devicons": { "branch": "master", "commit": "f66cdfef5e84112045b9ebc3119fee9bddb3c687" },
"plantuml-syntax": { "branch": "master", "commit": "9d4900aa16674bf5bb8296a72b975317d573b547" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
"toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" }, "toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" },

View File

@@ -0,0 +1,38 @@
return {
{
"aklt/plantuml-syntax",
},
{
'javiorfo/nvim-soil',
ft = "plantuml",
opts = {
-- If you want to change default configurations
-- This option closes the image viewer and reopen the image generated
-- When true this offers some kind of online updating (like plantuml web server)
actions = {
redraw = false
},
-- If you want to use Plant UML jar version instead of the installed 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
-- This is a default implementation of using nsxiv to open the resultant image
-- Edit the string to use your preferred app to open the image (as if it were a command line)
-- Some examples:
-- return "feh " .. img
-- return "xdg-open " .. img
execute_to_open = function(img)
return "feh " .. img
end
}
}
}
}