nvim: Add scrollbar
This commit is contained in:
parent
61d5759407
commit
0a20d1d3e2
2 changed files with 14 additions and 0 deletions
|
@ -35,3 +35,15 @@ augroup LuaHighlight
|
|||
autocmd!
|
||||
autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 2000)
|
||||
augroup END
|
||||
|
||||
augroup Scrollbar
|
||||
autocmd!
|
||||
autocmd BufEnter * silent! lua require('scrollbar').show()
|
||||
autocmd BufLeave * silent! lua require('scrollbar').clear()
|
||||
|
||||
autocmd CursorMoved * silent! lua require('scrollbar').show()
|
||||
autocmd VimResized * silent! lua require('scrollbar').show()
|
||||
|
||||
autocmd FocusGained * silent! lua require('scrollbar').show()
|
||||
autocmd FocusLost * silent! lua require('scrollbar').clear()
|
||||
augroup END
|
||||
|
|
|
@ -50,6 +50,8 @@ Plug 'tpope/vim-sleuth'
|
|||
Plug 'Yggdroot/indentLine'
|
||||
" Smooth scrolling
|
||||
Plug 'psliwka/vim-smoothie'
|
||||
" Scrollbar
|
||||
Plug 'Xuyuanp/scrollbar.nvim'
|
||||
" Directory viewer
|
||||
Plug 'justinmk/vim-dirvish'
|
||||
" Handle line & column jump specifications as found in stack traces
|
||||
|
|
Loading…
Reference in a new issue