nvim-neo-tree / neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.
MIT License
3.7k stars 218 forks source link

BUG: [LazyVim] Some file types are not displaying icons for neo-tree, but the icons work fine in nvim edit #1412

Open tsmith165 opened 6 months ago

tsmith165 commented 6 months ago

Did you check docs and existing issues?

Neovim Version (nvim -v)

v0.10.0-dev-2662+gcfc9fcc

Operating System / Version

Ubuntu 22.04

Describe the Bug

.js / .log / .txt / .svg files are not showing their icons in the neo-tree, but the icons are able to be loaded in the vim editor itself. Is there any special config I need to be making for these file types? I'm not seeing any docs on this. I have DevIcons font installed (tried Jetbrains mono nerd font and Hacker nerd font as well, but didnt see any effect).

Screenshots, Traceback

image

Steps to Reproduce

  1. Install Ubuntu 22.04
  2. Run LazyVim Automated Installer at: https://github.com/tsmith165/lazyvim-ubuntu-installer
  3. Open nvim and view neo-tree

Expected Behavior

.js / .log / .txt / .svg icons loaded in neo-tree

Your Configuration

require("config.lazy")
require("config.neo-tree")
vim.opt.guifont = 'DevIcons:h12'
pysan3 commented 6 months ago

I don't understand what you mean by loaded in vim editor itself.

The icons are also not shown in the tabline (the top line in editor that shows all opened buffers).

Do you have nvim-web-devicons installed? In the README, it says it is an optional dependency but it is necessary to have rich icon support. If you have it installed but still don't see the icons, please read their documents on how to set custom icons for filetypes.