yamatsum / nvim-nonicons

Icon set using nonicons for neovim plugins and settings
329 stars 21 forks source link

Wrong icons #7

Open ziulev opened 3 years ago

ziulev commented 3 years ago

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

yamatsum commented 3 years ago

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

ziulev commented 3 years ago

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

yamatsum commented 3 years ago

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

ziulev commented 3 years ago

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

yamatsum commented 3 years ago

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

ndavd commented 3 years ago

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)

xlittlerag commented 3 years ago

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!

vinodnimbalkar commented 3 years ago

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.

ndavd commented 3 years ago

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

xlittlerag commented 3 years ago

@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

ndavd commented 3 years ago

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
xlittlerag commented 3 years ago

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 = "",
  },
}
alvarogalloc commented 3 years ago

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

ndavd commented 3 years ago

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

diego-rapoport commented 1 year ago

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