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.28k stars 31 forks source link

fix: allow relative paths #21

Closed propet closed 2 years ago

propet commented 2 years ago

Turn relative paths to images into absolute paths so they're picked up by the plugin. Tried using the library plenary.path, but didn't work out for cases where the vim current working directory wasn't the same as the directory where the mardown file is located (i.e. you've opened vim at the project root, and you're accessing a file under a subdirectory).