Open krkhan opened 4 years ago
This also happen when I add a new file/folder. As a quickfix, I have found the reload action (Shift-r
) in NERDTree to display the icons back (for the files/folder that had missing icons).
@aminnairi Good idea. Since I was already using chdir mode 3 (which changes CWD when going up/down a tree), the following helped me automatically refresh:
let g:NERDTreeChDirMode = 3
function NERDRefresh ()
if &filetype == "nerdtree"
NERDTreeRefreshRoot
endif
endfunction
call NERDRefresh()
I think it's similar to this problem.
Required Info
VimDevIcons
is the last loaded vim plugin?Optional Info
Pretty consistent and happens with both vim and nvim. When I navigate up a directory in NerdTREE the devicon is missing for the directory I was just in. Fo.r example, in the screenshot I just navigated up from the
teams
directory.