vim-devicons
vim-devicons copied to clipboard
[fix] NERDTree automatic refresh #224
Requirements (please check off with 'x')
- [x] I have read the Contributing Guidelines
- [x] I have read or at least glanced at the FAQ
- [x] I have read or at least glanced at the Wiki
Note: The link to the Contributing Guidelines is broken.
What does this Pull Request (PR) do?
It fixes the bug reported in #224.
How should this be manually tested?
After applying this update, open NERDTree and create a new file. NERDTree will now automatically refresh and show the icon for the new file.
Any background context you can provide?
NERDTree buffers have buftype="nofile"
, so the CursorHoldUpdate()
function will return prematurely when a NERDTree buffer is focused. This PR adds a buftype
detection for NERDTree, preventing the return.
What are the relevant tickets (if any)?
#224
Great and appreciate the contribution 🥇
I will have to pull it down and test it out...
Note: The link to the Contributing Guidelines is broken.
Thanks for catching that! Fixed!
Hi, I added a commit to fix the style issues. Please review it, thanks!
Sorry, I want to test this out locally. Need to get caught up
I'm gonna help testing it out because I am having this issue as well
I've been using this for a while and it does solve the problem, however it takes 5 or more seconds to refresh the icons and when I create new files in the root directory it doesn't refresh the icon sometimes.
I'm waiting for that issue to be resolved. How is it going?
@parkgang I'm no longer using nerd tree but you can try using this one instead: https://github.com/nvim-tree/nvim-tree.lua