hologram.nvim icon indicating copy to clipboard operation
hologram.nvim copied to clipboard

blank image

Open kianfakheriaghdam opened this issue 3 years ago • 5 comments

I tried the example from README and the image pops up, but it's blank and empty.

Also after a while, it displayed the following.

Error executing vim.schedule lua callback: vim/shared.lua:0: invalid type name: 
nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'tbl_extend'
        ...e/pack/packer/start/hologram.nvim/lua/hologram/image.lua:59: in funct
ion 'display'
        ...te/pack/packer/start/hologram.nvim/lua/hologram/init.lua:56: in funct
ion 'buf_render_images'
        ...te/pack/packer/start/hologram.nvim/lua/hologram/init.lua:17: in funct
ion <...te/pack/packer/start/hologram.nvim/lua/hologram/init.lua:17>

kianfakheriaghdam avatar Dec 12 '22 12:12 kianfakheriaghdam

I had a similar issue while trying to run the README example. I fixed it by using an absolute path to the image instead of a relative one. Could this be your case too?

mroavi avatar Dec 12 '22 23:12 mroavi

Didn't work either.

kianfakheriaghdam avatar Dec 13 '22 08:12 kianfakheriaghdam

Are you using the Kitty terminal? This package only works with Kitty.

mroavi avatar Dec 13 '22 10:12 mroavi

No, but I'm installing it now. Aren't you supposed to download the tarball file & extract it? The application in bin is not executable.

kianfakheriaghdam avatar Dec 13 '22 10:12 kianfakheriaghdam

I have the same problem. I am using the Kitty terminal, and I can display images in the shell. In an nvim buffer, hologram just gives me a blank space.

leephillips avatar Jun 10 '23 23:06 leephillips