ryanoasis / vim-devicons

Adds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
MIT License
5.64k stars 267 forks source link

Add support for .svelte icons #415

Open Dillongc21 opened 3 years ago

Dillongc21 commented 3 years ago

Required Info

Optional Info

Screenshot_20211004_013122

josmhv commented 2 years ago

pls, I have been looking for a solution to this icon for a whole night, and I couldn't find anything.

SarveshMD commented 1 year ago

@Dillongc21 can you provide the icon which would be appropriate for .svelte files as an unicode/ASCII character ? With that I think I could add support for .svelte files and open a pull request. I browsed for it but I couldn't find.

tlegasse-miir commented 1 year ago

@Dillongc21 can you provide the icon which would be appropriate for .svelte files as an unicode/ASCII character ? With that I think I could add support for .svelte files and open a pull request. I browsed for it but I couldn't find.

Hi SarveshMD, you can find that icon at the nerdfont with the hex code e697. (link to search here) Thanks!

SarveshMD commented 1 year ago

Hello @tlegasse-miir, The icon you mentioned (hex code e697) is appearing as a down arrow in Meslo NF font in my bash terminal. I've done the required changes in my fork and while testing this was my result. any ideas ? image

tlegasse-miir commented 1 year ago

Hello @tlegasse-miir, The icon you mentioned (hex code e697) is appearing as a down arrow in Meslo NF font in my bash terminal. I've done the required changes in my fork and while testing this was my result. any ideas ? image

Hi Sarvesh, sorry for any confusion. Your previous comment mentioned wanting to know how to find the appropriate icon. Since I know nerdfonts are supported in Vim Devicons, I referenced how to find the hex code in the nerdfont glyphs. That is to say that when you go to the search page, typing in "svelte" reveals the correct icon, with the specified hex code (e967), but that's as far as I know how to get. I can dig in and see if I can get closer to a solution sometime soon. Would be nice to support the project in that way.

jimafisk commented 5 months ago

I opened a PR for this: https://github.com/ryanoasis/vim-devicons/pull/460

In the meantime, you should be able to add the following to your ~/.config/nvim/init.vim:

let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {}
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['svelte'] = ''
tlegasse-miir commented 5 months ago

Woohoo, thanks!

On Thu, May 9, 2024 at 7:40 AM Jim Fisk @.***> wrote:

I opened a PR for this: #460 https://github.com/ryanoasis/vim-devicons/pull/460

In the meantime, you should be able to add the following to your ~/.config/nvim/init.vim:

let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {} let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['svelte'] = ''

— Reply to this email directly, view it on GitHub https://github.com/ryanoasis/vim-devicons/issues/415#issuecomment-2102796882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYEFX5WSGW7F5KPPNJLJ6D3ZBODE3AVCNFSM5FIVUKY2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJQGI3TSNRYHAZA . You are receiving this because you were mentioned.Message ID: @.***>

-- Tanner Legasse, Technical Lead Design forward. Generosity driven.™ MiiR.com https://www.miir.com/?utm_source=email&utm_medium=email_product&utm_content=DTC_Signature&utm_campaign=miir_signature | b2b.MiiR.com https://b2b.miir.com/?utm_source=email&utm_medium=email_product&utm_content=B2B_Signature&utm_campaign=miir_signature | 2022 Impact Report https://www.miir.com/pages/2022-impact-report?utm_source=email&utm_medium=email_signature&utm_content=impact_report_2022_email_signature&utm_campaign=impact_report_2022