-
Notifications
You must be signed in to change notification settings - Fork 474
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: Default filetype icon #1337
Comments
Hi! Assuming you use this plugin: nvim-web-devicons so to handle file icons, you will need to add a default icon configuration setup, for instance: require('nvim-web-devicons').setup({
override = {},
default = true, -- Enable default icon fallback
default_icon = {
icon = "📄", -- Replace with any icon you like
color = "#6d8086", -- Icon color (optional)
cterm_color = "65", -- Terminal color code (optional)
name = "Default"
}
}) |
I'm using Lazyvim, which uses mini.icons to handle file icons. I tried using the below configuration, but it did not work. return {
"echasnovski/mini.icons",
opts = {
default = { file = { glyph = "" } },
},
} |
Try this: return {
"echasnovski/mini.icons",
opts = function(_, opts)
opts.default = {
file = { glyph = " " },
}
end,
} lmk if it worked! |
It did not work unfortunately :(. Do you think I should open an issue in the mini.icons or LazyVim repo instead? |
Yes, you could try this as well! |
Thanks for your help Ariasu! I'll keep this issue open until I get a fix. |
Requested feature
Option to set default filetype icon which is displayed if the opened file has no filetype icon
Motivation
Ensures consistency, all files get icons.
The text was updated successfully, but these errors were encountered: