Skip to content

Commit

Permalink
feat: add 3rd/diagram.nvim
Browse files Browse the repository at this point in the history
You have to install @mermaid/mermaid-cli and patch the index.js file as
described in
mermaid-js/mermaid-cli#730 (comment)
though... This is not a good solution, but it's the best so far.
  • Loading branch information
sillydan1 committed Feb 5, 2025
1 parent 88ca3e2 commit b7e15f8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ require("lazy").setup({
'mfussenegger/nvim-dap-python',
"raafatturki/hex.nvim",
{ "3rd/image.nvim", opts = {} },
{ "3rd/diagram.nvim", opts = {} },
'pwntester/octo.nvim',
{
"nvim-neorg/neorg",
Expand Down Expand Up @@ -248,6 +249,27 @@ require('darklight').setup({
require("image").setup({
backend = "kitty"
})
require("diagram").setup({
integrations = {
require("diagram.integrations.markdown"),
require("diagram.integrations.neorg"),
},
renderer_options = {
mermaid = {
theme = "forest",
},
plantuml = {
charset = "utf-8",
},
d2 = {
theme_id = 1,
},
gnuplot = {
theme = "dark",
size = "800,600",
},
},
})
require("nvim-tree").setup({
sort_by = "case_sensitive",
view = {
Expand Down

0 comments on commit b7e15f8

Please sign in to comment.