antfu / vscode-iconify

🙂 Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
453 stars 33 forks source link

NuxtLabs UI syntax support #51

Closed ddahan closed 1 year ago

ddahan commented 1 year ago

Clear and concise description of the problem

NuxtLabsUI built-in icon system use a different syntax to define an icon, for example:

<UButton icon="i-heroicons-magnifying-glass" />

Currently, it is displayed like this in VS Code using this extension:

image

Suggested solution

I suggest to be able to recognize this alternative syntax to have the expected result:

image

Alternative

No response

Additional context

No response

Validations

antfu commented 1 year ago

Well, I am not very sure about this. I created this extension, as well as the. i- prefix. To me I think it's fine to display as i-🔍 to be explicit about the existence of the prefix. On the other hand, in the icons preset of UnoCSS you can pass an empty string as the prefix to have collect:icon like convention. Thanks for bringing this up.