Capital 'R' file extension not recognized #504
Closed
PMassicotte
started this conversation in
General
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 |
0 replies
|
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. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.rresolves 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?
All reactions