neorg icon indicating copy to clipboard operation
neorg copied to clipboard

Hide URL of a link without reserving the space

Open chnoack opened this issue 5 months ago • 2 comments

Issues

  • [x] I have checked existing issues and there are no existing ones with the same request.

Feature description

For a link the URL is hidden if the cursor is not on that line. That's nice, but the place of the URL's text is still reserved, so that there is a lot empty space which might disrupt the reading flow

Help

Yes, but I don't know how to start. I would need guidance

Implementation help

No response

chnoack avatar Jun 13 '25 12:06 chnoack

there are already numerous issues for this

max397574 avatar Jun 13 '25 13:06 max397574

AFAIU it's upstream neovim issue, can't do anything about it. See #929 and related. Maybe that will help: https://github.com/benlubas/neorg-conceal-wrap

Anrock avatar Jun 13 '25 14:06 Anrock

You're absolutely right. That plugin solved my issue. The installation descripton for that plugin is not working if you are using Lazyvim. In that case follow this procedure und Bob's your uncle.

Add a file named neorg-conceal-wrap.lua to the folder .config/nvim/lua/plugins with the following content:

return { "benlubas/neorg-conceal-wrap" }

chnoack avatar Jun 16 '25 06:06 chnoack