nvim: add plugin 'weirongxu/plantuml-previewer.vim'
This commit is contained in:
parent
5274f0a7f2
commit
c91a813f83
2 changed files with 26 additions and 0 deletions
|
@ -35,6 +35,8 @@
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "dd0b2036c3a27cb6e6486f8bd24188c6ca43af0b" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "dd0b2036c3a27cb6e6486f8bd24188c6ca43af0b" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "313d9e7193354c5de7cdb1724f9e2d3f442780b0" },
|
"nvim-web-devicons": { "branch": "master", "commit": "313d9e7193354c5de7cdb1724f9e2d3f442780b0" },
|
||||||
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "4be2e8689067494ed7e5a4f1221adc31d1a07783" },
|
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "4be2e8689067494ed7e5a4f1221adc31d1a07783" },
|
||||||
|
"open-browser.vim": { "branch": "master", "commit": "7d4c1d8198e889d513a030b5a83faa07606bac27" },
|
||||||
|
"plantuml-previewer.vim": { "branch": "master", "commit": "1dd4d0f2b09cd80a217f76d82f93830dbbe689b3" },
|
||||||
"plantuml-syntax": { "branch": "master", "commit": "1592944444513c208ab5a087397ba987932af750" },
|
"plantuml-syntax": { "branch": "master", "commit": "1592944444513c208ab5a087397ba987932af750" },
|
||||||
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
|
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
|
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
|
||||||
|
|
24
config/nvim/lua/fschauen/plugins/plantuml-previewer.lua
Normal file
24
config/nvim/lua/fschauen/plugins/plantuml-previewer.lua
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
return {
|
||||||
|
"weirongxu/plantuml-previewer.vim",
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
"tyru/open-browser.vim",
|
||||||
|
},
|
||||||
|
|
||||||
|
cmd = {
|
||||||
|
"PlantumlOpen",
|
||||||
|
"PlantumlStart",
|
||||||
|
"PlantumlStop",
|
||||||
|
"PlantumlSave",
|
||||||
|
},
|
||||||
|
|
||||||
|
ft = "plantuml",
|
||||||
|
|
||||||
|
init = function()
|
||||||
|
-- Override the bundled JAR if one in installed in `/usr/local`.
|
||||||
|
local path = "/usr/local/share/plantuml/plantuml.jar"
|
||||||
|
if vim.loop.fs_stat(path) then
|
||||||
|
vim.g["plantuml_previewer#plantuml_jar_path"] = path
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue