yamatsum / nvim-nonicons

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

Icons appear as question mark #18

Closed mustafaergul closed 2 years ago

mustafaergul commented 2 years ago

I have installed https://github.com/yamatsum/nonicons/issues and chosen from iterm2 preferences already. Somehow icons don't appear on the nvim-tree plugin.

I am not using packer to download plugins, not sure if I should :/

:lua print(require('nvim-nonicons').get('light-bulb')) also works as expected.

Here are some screenshots;

image image image

Thanks.

yamatsum commented 2 years ago

@MustafaErgul It may have been solved by #15 , so can you update it and try again?

mustafaergul commented 2 years ago

@yamatsum Does the following would do the install job as usual plugins?

...
    Plug 'yamatsum/nvim-nonicons'
...

I am not sure where to locate the installation step mentioned in the repo description;

use 'yamatsum/nvim-nonicons'

-- if use nvim-web-devicons
use {
  'yamatsum/nvim-nonicons',
  requires = {'kyazdani42/nvim-web-devicons'}
}
yamatsum commented 2 years ago

Does the following would do the install job as usual plugins?

Yes, you must install nvim-web-devicons too.

    Plug 'kyazdani42/nvim-web-devicons'

I am not sure where to locate the installation step mentioned in the repo description

This is an example using packer

mustafaergul commented 2 years ago

Additionally, I have already installed nvim-web-devicons too, here is my snipped config;

image

mustafaergul commented 2 years ago

It seems like now the issue is only with folder icons rather than file icons. But they are somehow not colorful.

image

yamatsum commented 2 years ago

If you are using nvim-tree, try the following settings.

local icons = require "nvim-nonicons"

vim.g.nvim_tree_icons = {
  default = icons.get("file"),
  folder = {
    default = icons.get("file-directory"),
    open = icons.get("file-directory-outline"),
    symlink = icons.get("file-directory"),
    symlink_open = icons.get("file-directory-outline"),
    empty = icons.get("file-directory-outline"),
    empty_open = icons.get("file-directory-outline"),
    arrow_open = icons.get("chevron-down"),
    arrow_closed = icons.get("chevron-right")
  }
}
mustafaergul commented 2 years ago

Thanks for your suggestion, I will try this out. Since I have switched to nvim-dev-icons I am not able to test this yet. However thanks for your time ❤️

lougreenwood commented 2 years ago

@yamatsum I also hit this issue and your suggestion fixed the problem - thanks, this iconset looks great, nice to finally have icons which are a decent size! 🙏