diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 240076b..0537006 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -20,10 +20,12 @@ "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, "nvim-lspconfig": { "branch": "master", "commit": "5f550bbb4d58bb2bfbbed4633fc69c3f0eccaf3a" }, + "nvim-soil": { "branch": "master", "commit": "e464c5532b2737e2a489526bdc984e1b17d6ae26" }, "nvim-tree.lua": { "branch": "master", "commit": "fefa335f1c8f690eb668a1efd18ee4fc6d64cd3e" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, "nvim-web-devicons": { "branch": "master", "commit": "f66cdfef5e84112045b9ebc3119fee9bddb3c687" }, + "plantuml-syntax": { "branch": "master", "commit": "9d4900aa16674bf5bb8296a72b975317d573b547" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, "toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" }, diff --git a/.config/nvim/lua/plugins/plantuml.lua b/.config/nvim/lua/plugins/plantuml.lua new file mode 100644 index 0000000..af0bc5a --- /dev/null +++ b/.config/nvim/lua/plugins/plantuml.lua @@ -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 + } + } + } +} +