Xuyuanp / nerdtree-git-plugin

A plugin of NERDTree showing git status
Do What The F*ck You Want To Public License
2.08k stars 150 forks source link

git status icons don't update when toggling NERDtree #159

Closed baturevychvitalii closed 4 years ago

baturevychvitalii commented 4 years ago

Self-Diagnosis

Environment (for bug reports)

Steps to Reproduce the Issue

  1. open file, tracked by git, unchanged from last commit.
  2. close NERDtree
  3. modify and save the file
  4. toggle NERDtree

Current Result (Include screenshots where appropriate.)

2020-08-31-01:57:21-scr

Expected Result

2020-08-31-01:56:59-scr

Xuyuanp commented 4 years ago

Yes. This is a known issue I have no idea how to fix currently.

baturevychvitalii commented 4 years ago

I came up with a quickfix: As mentioned in bug report, I have following line in my ~/.vimrc:

map \ :NERDTreeToggle\

to toggle nerd tree (cause i don't need to see it all the time) I changed it to

map \ :NERDTreeToggle\:NERDTreeRefreshRoot\

seems like it has fixed the issue for me, and whenever i toggle nerd tree git icons are up to date

Xuyuanp commented 4 years ago

Wow!

I'll come up with a final solution, just need some time.

dasraab commented 4 years ago

same problem here. glad to hear that you're working on it! love this plugin!

Xuyuanp commented 4 years ago

Hi guys Please update and have a try.

baturevychvitalii commented 4 years ago

Thanks, works perfect!