Add a little scroll status bar to lightline

This commit is contained in:
Kevin MacMartin 2020-11-26 12:57:21 -05:00
parent 4617ad837d
commit 2eb91d7fca
5 changed files with 9 additions and 2 deletions

3
.gitmodules vendored
View file

@ -112,3 +112,6 @@
[submodule "vim/bundle/vim-extradite"]
path = vim/bundle/vim-extradite
url = https://github.com/int3/vim-extradite
[submodule "vim/bundle/vim-scrollstatus"]
path = vim/bundle/vim-scrollstatus
url = https://github.com/ojroques/vim-scrollstatus

View file

@ -186,6 +186,7 @@ For a complete list of mappings specific to **darkcloud-vimconfig**, check the l
* [vim-move](https://github.com/matze/vim-move): Provides a few convenient ways to move selected text.
* [vim-pathogen](https://github.com/tpope/vim-pathogen): A plugin to load other plugins while keeping them isolated in their own directory structure rather than all dumped together.
* [vim-polyglot-darkcloud](https://github.com/prurigro/vim-polyglot-darkcloud): The darkcloud-vimconfig fork of a meta-package that attempts to provide the best syntax plugins for each file type.
* [vim-scrollstatus](https://github.com/ojroques/vim-scrollstatus): A scrollbar for Vim statusline.
* [vim-signify](https://github.com/mhinz/vim-signify): When a version controlled file is changed, this displays a column showing where and how, and allows for navigation to and between differences.
* [vim-surround](https://github.com/tpope/vim-surround): Provides functionality to exchange surrounding delimiters and xml-style tags with another, or simply remove them.
* [vim-repeat](https://github.com/tpope/vim-repeat): A library used by vim-surround to allow its delimiter-switching functions to be repeated with the `.` command.

@ -0,0 +1 @@
Subproject commit 22a929172aa83c045b802f3a6b2fadbab54dc95a

View file

@ -77,7 +77,8 @@ let g:lightline.component_function = {
\ 'fileformat': 'LLFileformat',
\ 'filetype': 'LLFiletype',
\ 'fileencoding': 'LLFileencoding',
\ 'mode': 'LLMode'
\ 'mode': 'LLMode',
\ 'scrollstatus': 'ScrollStatus'
\ }
let g:lightline.component_expand = {
@ -100,7 +101,7 @@ let g:lightline.component = {
let g:lightline.active = {
\ 'left': [[ 'mode', 'paste' ], [ 'fugitive', 'filename' ], [ 'tagbar' ]],
\ 'right': [[ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_ok' ], [ 'lineinfo', 'percent' ], [ 'fileformat', 'fileencoding', 'filetype' ]]
\ 'right': [[ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_ok' ], [ 'fileformat', 'fileencoding', 'filetype' ], [ 'percent', 'lineinfo' ], [ 'scrollstatus' ]]
\ }
"status bar config with and without powerline fonts (default: 0)

View file

@ -0,0 +1 @@
let g:scrollstatus_size = 10