Skip to content

Conversation

@twio142
Copy link

@twio142 twio142 commented Feb 2, 2026

This PR fixes an issue where image links (![alt](...)) do not consistently display the image icon.

Currently, the plugin assigns icons based on the link target:

  • Local image paths correctly use the image icon
  • Image links pointing to web URLs (e.g. https://...) are treated as normal web links and get the web URL icon instead

I personally think that image links should always display the image icon, regardless of the URL type.

Make sure image links always have the image icon, regardless of the link type.
@MeanderingProgrammer
Copy link
Owner

This is intentional behavior, to prioritize custom icon definitions regardless of link type, image is just used as a fallback.

@twio142
Copy link
Author

twio142 commented Feb 4, 2026

I think image links are essentially different to other lins. They rarely need to be manually opened, so the concrete protocol or domain are not that relevant. It's more important to be able to identify the images.

I use snacks.nvim to render images only when the cursor is on the image link. So it makes more sense to me to always have the image icon available, otherwise they look exactly the same as normal links.

Hope you could reconsider this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants