Skip to content

Unexplained error #19

@Khelda

Description

@Khelda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions