Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexplained error #19

Open
Khelda opened this issue Feb 16, 2025 · 0 comments
Open

Unexplained error #19

Khelda opened this issue Feb 16, 2025 · 0 comments

Comments

@Khelda
Copy link

Khelda commented Feb 16, 2025

Hello there,

From what I understand from reading the documentation, with an already setup kitty and using VimPlug (I understood that lazy might not be mandatory for this plugin and the config existed before me knowing about lazy), this should not happen :

Image

For information, the setup looks like this :

--
-- Graph plugin configuration file.
--

require 'nix'
local nix = Nix:new()

-- pathing fix
vim.env['PATH'] = vim.env['PATH'] .. ':' .. nix:path("mermaid-cli", "/bin")

-- Plugin setup
require 'diagram'.setup {
    integrations = {
        require 'diagram.integrations.markdown'
    },
    renderer_options = {
        mermaid = { theme = "dark", background = "transparent" },
        plantuml = { charset = "utf-8" },
        d2 = { theme_id = 1, dark_theme_id = 1 },
        gnuplot = { theme = "dark", size = "400,200" }
    }
}

Don't mind the nix bit, it's just for pathing purposes and making sure mmdc is available on path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant