nvim-nonicons icon indicating copy to clipboard operation
nvim-nonicons copied to clipboard

Wrong icons

Open ziulev opened this issue 3 years ago • 15 comments

Something went wrong, could you help me to install the plugin?

I'm using macOS

  1. Installed https://github.com/yamatsum/nonicons/blob/master/dist/nonicon.ttf
  2. Installed plugin via Packer
    use {
      'yamatsum/nvim-web-nonicons',
      requires = {'kyazdani42/nvim-web-devicons'}
    }

And it looks like this: image

ziulev avatar Mar 22 '21 15:03 ziulev

What terminal app are you using? Did you set the font in the terminal app?

yamatsum avatar Mar 22 '21 15:03 yamatsum

Alacrity Hm, no, I didn't I prefer to use Iosevka, is there any another way?

ziulev avatar Mar 22 '21 15:03 ziulev

https://github.com/alacritty/alacritty/issues/3318 It seems that multiple fonts cannot be used in Alacrity, so there is no choice but to apply a patch

yamatsum avatar Mar 22 '21 17:03 yamatsum

How can I apply the patch? Do you mean to patch my current font or?

ziulev avatar Mar 22 '21 19:03 ziulev

https://github.com/yamatsum/nonicons/issues/4 I don't prepare to patch font currently.

yamatsum avatar Mar 23 '21 06:03 yamatsum

I'm on kitty, I put the line symbol_map U+f101-U+f208 nonicon on kitty.conf. I'm using nvim-tree.lua, the file icons doesn't seem to be correct, however. NvimTree

(PS: I'm using it with nvim-web-devicons)

ndavd avatar Apr 16 '21 19:04 ndavd

Hi! I had the same issue with Kitty. I've just changed the line in the config file to symbol_map U+f101-U+f208 nonicons. It's changing nonicon to plural form. Hope it would work for you!

xlittlerag avatar Jun 16 '21 02:06 xlittlerag

Hi! I had the same issue with Kitty. I've just changed the line in the config file to symbol_map U+f101-U+f208 nonicons. It's changing nonicon to plural form. Hope it would work for you!

Thanks, It works for me.

vinodnimbalkar avatar Jul 02 '21 19:07 vinodnimbalkar

it does not work. Some of the icons are wrong nonetheless. image

ndavd avatar Jul 03 '21 12:07 ndavd

@ndav1d the vimscript and folder icon seems good. Which one do you think is wrong? Also, please add the fonts setting in your kitty conf

xlittlerag avatar Jul 03 '21 14:07 xlittlerag

In these icons we can already see some that are not correct... For example, a "bug" where it should be an opened empty folder haha. image

My kitty font config is the following

font_family      JetBrainsMono Nerd Font Mono
symbol_map U+f101-U+f208 nonicons

ndavd avatar Jul 03 '21 20:07 ndavd

Oh... I see it now hahaha. I have the same issue, but as I set another icon for folders, I haven't realized it yet.

I know it's not the answer you are looking for, but you can set the icons like this:

vim.g.nvim_tree_icons = {
  folder = {
    default = "",
    open = "",
    empty = "",
    empty_open = "",
    symlink = "",
    symlink_open = "",
  },
}

xlittlerag avatar Jul 03 '21 20:07 xlittlerag

In macos by using the patched font still doesn't works :(

alvarogalloc avatar Aug 01 '21 09:08 alvarogalloc

yes the icons are not in the right place. it won't work on any device

ndavd avatar Aug 01 '21 09:08 ndavd

Same problem, but I'm using wezterm with Fira Code. Any workarounds to try to make it right?

diego-rapoport avatar Nov 16 '22 12:11 diego-rapoport