1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

feat(scrollbar): update scrollbar on CursorHold autocmd

This commit is contained in:
wsdjeg 2022-04-16 21:09:33 +08:00
parent 0ff0c941dc
commit b6218e0d4a

View File

@ -171,7 +171,7 @@ function! SpaceVim#layers#ui#config() abort
augroup spacevim_layer_ui
autocmd!
if s:enable_scrollbar && has('nvim')
autocmd BufEnter,CursorMoved,VimResized,FocusGained
autocmd BufEnter,CursorMoved,VimResized,FocusGained,CursorHold
\ * call SpaceVim#plugins#scrollbar#show()
autocmd BufLeave,FocusLost,QuitPre
\ * call SpaceVim#plugins#scrollbar#clear()