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

NERDTree needs to be called after vim-devicons #428

Open
8 of 9 tasks
harriott opened this issue Feb 15, 2022 · 4 comments
Open
8 of 9 tasks

NERDTree needs to be called after vim-devicons #428

harriott opened this issue Feb 15, 2022 · 4 comments

Comments

@harriott
Copy link

Requirements

Required Info

  • I have searched the issues for my issue and found nothing related and/or helpful
  • I have read or at least glanced at the FAQ
  • I have read or at least glanced at the Wiki
  • VimDevIcons is the last loaded vim plugin?
  • What version of vim are you using?
    • vim 8.2 patches 1-4106
  • What font are you using?
    • UbuntuMono Nerd Font Mono 10 (but same issue with other Nerd Fonts)
  • Are you using vim from the terminal or a GUI vim?
    • gVim, nvim, vim
  • Are you using Mac, Linux or Windows?
    • Arch Linux

Optional Info

  • Provide screenshots where appropriate

my issue

I can only see icons if packadd nerdtree is after packadd vim-devicons (not before, as recommended).
I've checked with vim dotfiles stripped down to only those packages and the calls to them, nothing else.

@timsu92
Copy link

timsu92 commented Jun 30, 2022

I'm fine on Vim 8.1 and loading NERDTree first.
I use vim-plug. Maybe you can try if that's a problem of your plugin manager or Vim?

Here's what in my .vimrc:

Plug 'preservim/nerdtree' | 
	\ Plug 'Xuyuanp/nerdtree-git-plugin' |
	\ Plug 'ryanoasis/vim-devicons'

@harriott
Copy link
Author

vim 9.0 patches 1-354 here now, so tried again here the recommended loading order:

.vim/after/plugin/plugins.vim

packadd nerdtree
packadd vim-devicons

and NERDTree again doesn't find the vim-devicons...

@fourpastmidnight
Copy link

fourpastmidnight commented Feb 21, 2023

This is probably related to this issue for Vim's package system.

@harriott
Copy link
Author

So I checked again, with no other packages,
scriptnames ends with calls only to NERD_tree.vim & webdevicons.vim:

- either your recommended order (and devicons are invisible in NERDtree):

...
 1: /etc/vimrc
 2: /usr/share/vim/vimfiles/archlinux.vim
 3: ~/.vimrc
...
43: ~/.vim/pack/packs-cp/opt/nerdtree/plugin/NERD_tree.vim
44: ~/.vim/pack/packs-cp/opt/nerdtree/autoload/nerdtree.vim
...
63: ~/.vim/pack/packs-cp/opt/vim-devicons/plugin/webdevicons.vim

- or my order (and devicons are visible in NERDtree):

...
43: ~/.vim/pack/packs-cp/opt/vim-devicons/plugin/webdevicons.vim
44: ~/.vim/pack/packs-cp/opt/nerdtree/plugin/NERD_tree.vim
45: ~/.vim/pack/packs-cp/opt/nerdtree/autoload/nerdtree.vim
...

Nothing odd in the loading orders, so I don't think it's related to Inconsistent loading order of packages and their parts #7056.

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

3 participants