nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
2.02k stars 182 forks source link

Set all icons to one icon #189

Closed kirill-martynov closed 1 year ago

kirill-martynov commented 1 year ago

Hello!

I want to change all the file icons to one specific Right now each filetype has it's own specific icon

Screenshot 2023-01-22 at 02 07 02

I want to use only one icon for all the files

Screenshot 2023-01-22 at 02 07 54

How can I do this?

alex-courtis commented 1 year ago

This would depend on your context. You could for example:

get_default_icon or get_icon_by_filetype('html')

kirill-martynov commented 1 year ago

I've tried this:

config.set_icon {
  lua = { icon = "" },
}
Screenshot 2023-01-22 at 02 36 36

This worked only for lua, but is there a way to set icon for all files? I've also tried this:

config.set_default_icon("", "#6d8086")

but it's not worked

kirill-martynov commented 1 year ago

I want this:

Screenshot 2023-01-22 at 02 07 02

Be like this:

Screenshot 2023-01-22 at 02 43 13

Use same icon in nvim-tree, telescope etc.

alex-courtis commented 1 year ago

I see: you want every file icon to be the same.

For the nvim-tree case it is simple: don't use web-devicons. It will then use renderer.icons.glyphs.default for all file icons.

You may have similar results for telescope.

kirill-martynov commented 1 year ago

@alex-courtis Thanks!

It's worked for nvim-tree Now I need to find a same way to do this for telescope

Update: Telescope done too:

    entry_prefix = "  ",
    selection_caret = "  ",