Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .svelte icons #415

Open
9 tasks done
Dillongc21 opened this issue Oct 4, 2021 · 7 comments
Open
9 tasks done

Add support for .svelte icons #415

Dillongc21 opened this issue Oct 4, 2021 · 7 comments

Comments

@Dillongc21
Copy link

Dillongc21 commented Oct 4, 2021

Required Info

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

Optional Info

  • 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

@josmhv
Copy link

josmhv commented Jul 18, 2022

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

@SarveshMD
Copy link
Contributor

@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
Copy link

@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
Copy link
Contributor

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
Copy link

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 added a commit to jimafisk/vim-devicons that referenced this issue May 9, 2024
@jimafisk
Copy link

jimafisk commented May 9, 2024

I opened a PR for this: #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
Copy link

tlegasse-miir commented May 10, 2024 via email

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

No branches or pull requests

5 participants