-
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
Default icon is not working correctly #449
Comments
I solved some of my issue. Part of it was I had to set some things for the file tree explorer itself. However, the default icon isn't working for everything. |
To confirm: does the default default icon show when you remove |
Not sure what you mean... if I delete the |
Experimenting with your setup: require("nvim-web-devicons").set_default_icon('D', '#6d8086', 65)
print(vim.inspect(require("nvim-web-devicons").get_default_icon())) {
color = "#6d8086",
cterm_color = 65,
icon = "D",
name = "Default"
} require("nvim-web-devicons").set_default_icon('X')
print(vim.inspect(require("nvim-web-devicons").get_default_icon())) {
icon = "X",
name = "Default"
} That is working as intended, presuming that |
Yes. However... that's not to say that nvim-tree, telescope or lualine will actually use it, they may use their own. Experimenting with nvim-tree and |
nvim-tree is not showing the default icon, contradicting help: *nvim-tree.renderer.icons.web_devicons.file.enable*
Show icons on files.
Overrides |nvim-tree.renderer.icons.glyphs.default|
Type: `boolean`, Default: `true`
*nvim-tree.renderer.icons.glyphs.default*
Glyph for files.
Overridden by |nvim-tree.renderer.icons.web_devicons| if available.
Type: `string`, Default: `""` Raised nvim-tree/nvim-tree.lua#2758 |
RE lualine: it does not show default icons. I'll leave telescope to you... Does resolution of this issue resolve your concerns? |
I left a comment over there. Happy to test, just unsure how. |
Fixed via nvim-tree nvim-tree/nvim-tree.lua#2759 |
@alex-courtis Still not seeing the default icon taking effect even after updating nvim-tree. |
That's no good; we'll get to the bottom of this. I reckon it's nvim-tree. Please raise an nvim-tree bug report with your nvim-tree and nvim-webdevicons minimal configuration so that we may reproduce and fix. |
I've set a default icon but for whatever reason it's not being picked up by certain files. For instance:
However, the setup shows the icon perfectly fine:
As you can see the editor renders the page icon just fine but it is not applying it to all icons as a default.
The text was updated successfully, but these errors were encountered: