nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I show icons with `paq`?

zchrissirhcz opened this issue · comments

Hi, nvim-tree.lua developers

I'm new to nvim, and use paq(https://github.com/savq/paq-nvim) as plugin manager. I would like to show icons with NvimTreeToggle command, but it failed to show icons. I would like to know the correct config for this purpose, with paq plugin manager (I feel paq is simple and enough..)

图片

To reproduce, I'm using only init.lua for configuration, it's content:

local fn = vim.fn

local install_path = fn.stdpath('data') .. '/site/pack/paqs/start/paq-nvim'
-- print('>>> install_path is: ' .. install_path)
-- /home/zz/.local/share/nvim/site/pack/paqs/start/paq-nvim

if fn.empty(fn.glob(install_path)) > 0 then
    fn.system({'git', 'clone', '--depth=1', 'https://github.com/savq/paq-nvim.git', install_path})
end


require 'paq' {
    {'savq/paq-nvim'},
    {'kyazdani42/nvim-web-devicons'},
    {'kyazdani42/nvim-tree.lua'}
}

-- require("nvim-web-devicons").setup {}
require('nvim-tree').setup {
    requires = {
        'kyazdani42/nvim-web-devicons', -- optional, for file icon
    }
}

OK, it's a font issue, solved by installing a nerd font and use this font in my terminal, and reboot my terminal application.
Maybe mentioning this font config is more helpful.