Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong icons #7

Open
ziulev opened this issue Mar 22, 2021 · 15 comments
Open

Wrong icons #7

ziulev opened this issue Mar 22, 2021 · 15 comments

Comments

@ziulev
Copy link

ziulev commented Mar 22, 2021

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

@ya2s
Copy link
Owner

ya2s commented Mar 22, 2021

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

@ziulev
Copy link
Author

ziulev commented Mar 22, 2021

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

@ya2s
Copy link
Owner

ya2s commented Mar 22, 2021

alacritty/alacritty#3318
It seems that multiple fonts cannot be used in Alacrity, so there is no choice but to apply a patch

@ziulev
Copy link
Author

ziulev commented Mar 22, 2021

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

@ya2s
Copy link
Owner

ya2s commented Mar 23, 2021

ya2s/nonicons#4
I don't prepare to patch font currently.

@ndavd
Copy link

ndavd commented Apr 16, 2021

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
Copy link

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
Copy link

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
Copy link

ndavd commented Jul 3, 2021

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

@xlittlerag
Copy link

@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
Copy link

ndavd commented Jul 3, 2021

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
Copy link

xlittlerag commented Jul 3, 2021

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
Copy link

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

@ndavd
Copy link

ndavd commented Aug 1, 2021

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

@diego-rapoport
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants