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

Neorg support #38

Open huwqchn opened 1 year ago

huwqchn commented 1 year ago

Any plans to support neorg?

Vaisakhkm2625 commented 1 year ago

i am using markdown syntax and it's working great.... Screenshot_20230521_234846

this is actually my 2 weeks prior markdown note i just copy pasted here and replaced # with *

you can use this along with postfen/clipboard-image.nvim plugin to paste image from clipboard.... it will place image in a directory and add link to the doc.....

i personally draw quickly in excalidraw and export as png... download it to 'img' folder with a download router extension (https://chrome.google.com/webstore/detail/regexp-download-organizer/oamembonjndgangicfphlckkdmagpjlg) so all excalidraw pngs go their.. and go back to document and type out the path to the image because i picked the name before downloading so i know the name (also i embud sene with excalidraw so i can go back and edit...)

Vaisakhkm2625 commented 1 year ago

That's said, i am always getting this error

Error executing vim.schedule lua callback: ...ocal/share/nvim/lazy/hologram.nvim/lua/hologram/init.lua:47: Invalid buffer id: 1
stack traceback:
    [C]: in function 'nvim_buf_get_extmarks'
    ...ocal/share/nvim/lazy/hologram.nvim/lua/hologram/init.lua:47: in function 'buf_render_images'
    ...ocal/share/nvim/lazy/hologram.nvim/lua/hologram/init.lua:17: in function <...ocal/share/nvim/lazy/hologram.nvim/lua/hologram/init.lua:17>
1 line less; before #15  0 seconds ago

i was going open a issue...

donovanglover commented 1 year ago

Looks like image.nvim has neorg support if this is something you're still looking for.