Skip to content

docs(recipes): Fix mini.icons + lspkind recipe#2148

Merged
saghen merged 4 commits into
saghen:mainfrom
dybdeskarphet:main
Sep 26, 2025
Merged

docs(recipes): Fix mini.icons + lspkind recipe#2148
saghen merged 4 commits into
saghen:mainfrom
dybdeskarphet:main

Conversation

@dybdeskarphet
Copy link
Copy Markdown
Contributor

From #2121:

@saghen So the problem is, I recenetly discovered that ctx.item.data.type can be "link" and mini.icons doesn't have that category. For instance, while writing shebangs.

I apologize for opening this PR without testing more instances. And what should I do know? Revert this PR?

The issue is that icons related to filesystem types (like link, socket, fifo, etc.) don’t exist in mini.icons. With this PR, those types are assigned the default "os" icon (a desktop computer), since I couldn’t find a better fit for filesystem-related items.

I am aware that the code pattern repeats twice, but I kept it that way because I felt an external function wouldn’t fit well with the general structure of the “recipes".

@saghen
Copy link
Copy Markdown
Owner

saghen commented Sep 26, 2025

I believe I got the same behavior but managed to simplify it a bit. Lmk if I broke anything though and I'll fix it up on main. Sorry for the wait!

@saghen saghen merged commit 2d1aee9 into saghen:main Sep 26, 2025
1 check passed
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