vim-devicons icon indicating copy to clipboard operation
vim-devicons copied to clipboard

Add support for .svelte icons

Open Dillongc21 opened this issue 4 years ago • 7 comments

Required Info

  • [x] I have searched the issues for my issue and found nothing related and/or helpful
  • [x] I have read or at least glanced at the FAQ
  • [x] I have read or at least glanced at the Wiki
  • [x] VimDevIcons is the last loaded vim plugin?
  • [x] What version of vim are you using? NVIM v0.5.0
  • [x] What version of vim-devicons are you using? 0.11.0
  • [x] Are you using vim from the terminal or a GUI vim? Terminal - Alacritty
  • [x] Are you using Mac, Linux or Windows? Arch Linux - Kernel 5.14.7-arch1-1

Optional Info

  • [x] Provide screenshots where appropriate

I am working on a Svelte project and all svelte files show as the default text file icon. Svelte seems like it's becoming a pretty popular technology so it would be nice to have support for the icons.

Screenshot_20211004_013122

Dillongc21 avatar Oct 04 '21 07:10 Dillongc21

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

josmhv avatar Jul 18 '22 10:07 josmhv

@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.

SarveshMD avatar Jan 13 '23 08:01 SarveshMD

@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!

tlegasse-miir avatar Mar 13 '23 17:03 tlegasse-miir

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

SarveshMD avatar Apr 22 '23 16:04 SarveshMD

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.

tlegasse-miir avatar Apr 25 '23 00:04 tlegasse-miir

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'] = ''

jimafisk avatar May 09 '24 14:05 jimafisk

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

tlegasse-miir avatar May 10 '24 18:05 tlegasse-miir