Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

is it possible to have Material icons ?
if it is already possible then tell me how to do that?

You must be logged in to vote

There isn't any other way than manually overriding all icons. We could consider introducing theme or preset, but that would greatly increase maintenance cost and presets could easily get out of sync (where one preset contains an icon and others don't).

Replies: 3 comments · 13 replies

Comment options

It looks like material icons are present by extension: https://github.com/nvim-tree/nvim-web-devicons/blob/master/lua/nvim-web-devicons.lua#L958

Is there a material &filetype ?

You must be logged in to vote
5 replies
@niksingh710
Comment options

no not a material filetype
i meant that nvim-web-devicons have specific set of icons.
is there any way to have the material icons as representation ?
like if there any override available ?
https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme

@gegoune
Comment options

There isn't any other way than manually overriding all icons. We could consider introducing theme or preset, but that would greatly increase maintenance cost and presets could easily get out of sync (where one preset contains an icon and others don't).

Answer selected by alex-courtis
@niksingh710
Comment options

will it be possible to have a preset of required icons list that the community can maintain as seprate repo.
and then it can get override in setup config?.

e.g installing xyz/material-icon-for-nvimwebdev

then requiring the material icon and overriding it in here if having a option is possible?

@alex-courtis
Comment options

That is indeed an option. A separate plugin could setup nvim-web-devicons, passing it overridden icon sets.

@gegoune
Comment options

There already is https://github.com/yamatsum/nvim-nonicons.

Comment options

Please make this happen! been trying to hack material icons into neovim for a year now.
Up to now I'm manually overriding but it's quite messy and doesn't work flawlessly.

here is a link to an override list: (https://github.com/DaikyXendo/nvim-material-icon/blob/main/lua/nvim-material-icon.lua)

i've manually copied all the values and overriden them but not everything is working well.

You must be logged in to vote
0 replies
Comment options

Hey folks, a while back I created a project called termicons which basically takes the icon set from the VS Code material icons extension and packages it as an icon font. Combined with termicons.nvim, you can use the exact set of vs code icons with nvim-web-devicons!

image

@alex-courtis Not sure if it's something you'd be interested in potentially including as an official configuration. If so, let me know.

You must be logged in to vote
8 replies
@niksingh710
Comment options

@mskelton i tried termicons nvim it works perfectly.
i am using foot terminal in that i needed to add a line

font=JetBrainsMono Nerd Font Mono:size=10,termicons:size=10

this sets termicons as fallback. (if possible you can add it in readme)

@gegoune
Comment options

this sets termicons as fallback. (if possible you can add it in readme)

I don't think we want to nor have time and knowledge to maintain configurations for all existing terminal emulators out there. User maintained wiki is definitely an option though.

@mskelton
Comment options

@niksingh710 I agree with @gegoune that maintaining instructions for every single terminal is not something that is very maintainable.

@niksingh710
Comment options

A community maintained wiki is a nice option.

@alex-courtis
Comment options

A community maintained wiki is a nice option.

It's on the list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.