-
Notifications
You must be signed in to change notification settings - Fork 193
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
feat: add audio file icons, remove audio/video from vim filetypes #410
feat: add audio file icons, remove audio/video from vim filetypes #410
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good; let's add the rest #404 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are looking good, however they should actually be in the icons_by_file_extension
table.
There are already some of these extensions in there... including mp3.
I'll be grateful if you could move the new ones in there, overwriting.
However... the existing ones are using nf-fa-music
. We'll need to use that one, to avoid a breaking change.
Sorry, I made those commits in a few free minutes yesterday, I didn't notice either the |
Looking good: However I think we might be backwards here: all the new icons are in The |
Any updates @pauchiner ? This is really close... |
Sorry, I was absent due to personal things, as soon as I can I will make a commit with the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, a couple of tidies needed.
lua/nvim-web-devicons.lua
Outdated
@@ -246,6 +249,7 @@ local filetypes = { | |||
["vue"] = "vue", | |||
["wasm"] = "wasm", | |||
["wav"] = "wav", | |||
["wma"] = "wma", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above aren't vim filetypes so should not be mapped to extensions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not quite there...
None of these file types correspond to vim syntax &ft
, see /usr/share/nvim/runtime/syntax
We need to remove them from the mapping
-- Map of filetypes -> icon names
local filetypes = {
So if aren't vim filetypes, how are mapped? |
No worries; this is not very clear from the names. Files like these are simply mapped by their extension against the keys of Try
|
I'm not really sure if PCM file extension is really used, so could be added. |
I have already deleted the filetypes that I added at the time, but then by the same logic, those that were previously there should also be deleted, such as mp3, mp4, wav... |
Good catch! Yes, they should be removed. In the interest of speed, I'll push that change to this branch. |
Sounds good! Any others you think of please do raise a PR... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your contribution and many thanks for bearing with all the back and forth.
Closes #404
Roadmap: