Replies: 1 comment
-
You'll need to add/override your icon by extension, then may a filetype to it, something like require("nvim-web-devicons").set_icon {
["c"] = {
icon = "x",
color = "#599EFF",
cterm_color = "111",
name = "C"
},
}
require("nvim-web-devicons").set_icon_by_filetype({ cpp = "c", }) RE telescope icons, check the telescope :help |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi,
My goal is to set a custom icon for
TelescopePrompt
buffers however the Filetype function doesn't seem to work.If I use
override_by_extension
(commented out) it works just fine but withset_icon_by_filetype
I'm unable to set a custom icon.Here a simple test with
.norg
files (works only with override_by_extension):Is there a way to set custom icon for buffers like
TelescopePrompt
insidesetup
func?I didn't find something like
override_by_filetype
in the docs so I guess this has to be done withset_icon_by_filetype
but for some reason this particular one isn't working for me.Beta Was this translation helpful? Give feedback.
All reactions