edluffy / hologram.nvim

👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blank image

kianfakheriaghdam opened this issue · 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>

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?

Didn't work either.

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

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.

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.