Xuyuanp/scrollbar.nvim

Multiple scrollbars appeared when `go to definition`.

RunningIkkyu opened this issue · 3 comments

Steps to reproduce the bug

Using Neovim LanguageClient to go to definition of a function, both the old file's scrollbar and the new file's srallbar are staying on the right side.

Resulting and expected behaviour

Only one scrollbar exists.

Screen recording or screenshot

image

image

System information

  • Operating system: ubuntu 20.04
  • Neovim version: v0.5.0

Solving that by add auto command to vim config:

autocmd WinLeave,BufLeave,BufWinLeave,FocusLost            * silent! lua require('scrollbar').clear()

Create a PR for this issue. Just update the autocmd in the doc. #22

Thanks for your great PR!