Giter VIP home page Giter VIP logo

Comments (5)

neuromaancer avatar neuromaancer commented on July 17, 2024 2

I installed ueberzugpp via homebrew and it is the lastest version. My setting is:

package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua;"
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua;"

return {
    "3rd/image.nvim",
    ft = "markdown",
    opts = {
        backend = "ueberzug",
        integrations = {
            markdown = {
                enabled = true,
                clear_in_insert_mode = false,
                download_remote_images = true,
                only_render_image_at_cursor = false,
                filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
            },
            neorg = {
                enabled = true,
                clear_in_insert_mode = false,
                download_remote_images = true,
                only_render_image_at_cursor = false,
                filetypes = { "norg" },
            },
        },
        max_width = nil,
        max_height = nil,
        max_width_window_percentage = nil,
        max_height_window_percentage = 50,
        window_overlap_clear_enabled = false, -- toggles images when windows are overlapped
        window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
        editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
        tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
        hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp" }, -- render image files as images when opened
    },
}

from image.nvim.

neuromaancer avatar neuromaancer commented on July 17, 2024

There is a screenshot for this:
image

There should be an image at line 3, but no picture is shown, but the space is there.

from image.nvim.

3rd avatar 3rd commented on July 17, 2024

Has to be something in your setup, do you have the latest version of ueberzugpp?

from image.nvim.

Williepedia avatar Williepedia commented on July 17, 2024

I am experiencing a similar issue with both the kitty and ueberzug backends.

However, with some testing with the minimal-setup.lua file, I realized this only occurs in a (poetry) virtual environment. Are there any steps that need to be taken to make the plugin compatible with virtual environments?

Edit: This appears to be a poetry issue for me. Just tried it with venv and it works as advertised.

from image.nvim.

3rd avatar 3rd commented on July 17, 2024

Yeah, not sure what's going wrong, these are edge cases that need debugging where the issue happens.
@neuromaancer afraid I can't help, you can try debugging what's going, it has to be something specific to your setup.
The first rewrite of the plugin is in-progress, and we'll have a logging & troubleshooting layer soon.

from image.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.