Capital 'R' file extension not recognized #504
Replies: 3 comments 1 reply
-
Using extension = string.lower(extension) in the function fixes the problem. It comes from the fact that nvim-web-devicons/lua/nvim-web-devicons.lua Line 231 in 56f17de nvim-web-devicons/lua/nvim-web-devicons.lua Lines 518 to 521 in 56f17de |
Beta Was this translation helpful? Give feedback.
-
Should be fixed by #503. |
Beta Was this translation helpful? Give feedback.
-
I am using the latest commit of https://github.com/nvim-tree/nvim-web-devicons and still have this issue. devicons lowercase the name of the file, not its extension. |
Beta Was this translation helpful? Give feedback.
-
In R, it is standard practice to use a capital "R" when naming files, such as
test.R
. However, this seems to cause an issue in this context, as files with this naming convention are not being recognized. Changing the extension to.r
resolves the issue (see the attached screenshot).I suspect this behaviour may stem from this function:
https://github.com/nvim-tree/nvim-tree.lua/blob/010ae0365aafd6275c478d932515d2e8e897b7bb/lua/nvim-tree/renderer/components/icons.lua#L57-L75)
Is there anything I can do on my end to modify this behavior?
Beta Was this translation helpful? Give feedback.
All reactions