edluffy / hologram.nvim

👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.
MIT License
1.29k stars 31 forks source link

blank image #32

Open kianfakheriaghdam opened 1 year ago

kianfakheriaghdam commented 1 year ago

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>
mroavi commented 1 year ago

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?

kianfakheriaghdam commented 1 year ago

Didn't work either.

mroavi commented 1 year ago

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

kianfakheriaghdam commented 1 year ago

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.

leephillips commented 1 year ago

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.