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

Failed to run config #17

Open
BALAJI24092001 opened this issue Feb 10, 2025 · 0 comments
Open

Failed to run config #17

BALAJI24092001 opened this issue Feb 10, 2025 · 0 comments

Comments

@BALAJI24092001
Copy link

I'm getting this error

Failed to run `config` for diagram.nvim
\Local/nvim-data/lazy/image.nvim/lua/image/utils/term.lua:34: cannot resolve symbol 'ioctl': The specified procedure could not be found.
# stacktrace:
- image.nvim\lua\image\utils\term.lua:34 _in_ **update_size**
- image.nvim\lua\image\utils\term.lua:46
- image.nvim\lua\image\utils\init.lua:8
- image.nvim\lua\image\init.lua:1
- diagram.nvim\lua\diagram\init.lua:1
- markdown_preview.lua:36 _in_ **config**
- - ~\AppData\Local\nvim\init.lua:31

This is my setup

    {
        '3rd/diagram.nvim',
        dependencies = {
            '3rd/image.nvim',
        },
        config = function()
            require('diagram').setup {
                -- integrations = {
                --     require 'diagram.integrations.markdown',
                --     require 'diagram.integrations.neorg',
                -- },
                renderer_options = {
                    mermaid = {
                        theme = 'forest',
                    },
                    plantuml = {
                        charset = 'utf-8',
                    },
                },
            }

            renderer_options = {
                mermaid = {
                    background = 'white', -- nil | "transparent" | "white" | "#hex"
                    theme = 'dark',       -- nil | "default" | "dark" | "forest" | "neutral"
                    scale = 1,            -- nil | 1 (default) | 2  | 3 | ...
                    width = nil,          -- nil | 800 | 400 | ...
                    height = nil,         -- nil | 600 | 300 | ...
                },
                plantuml = {
                    charset = nil,
                },
                d2 = {
                    theme_id = nil,
                    dark_theme_id = nil,
                    scale = nil,
                    layout = nil,
                    sketch = nil,
                },
                gnuplot = {
                    size = nil,  -- nil | "800,600" | ...
                    font = nil,  -- nil | "Arial,12" | ...
                    theme = nil, -- nil | "light" | "dark" | custom theme string
                },
            }
        end,
        opts = {},
    },

Can someone please help me. I'm not sure what's wrong. I've even got luarocks installed and run somehow and still it's now working.

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