From 2eb91d7fcaa283157b6ba0ef508c1a2189a8aea7 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 26 Nov 2020 12:57:21 -0500 Subject: [PATCH] Add a little scroll status bar to lightline --- .gitmodules | 3 +++ README.md | 1 + vim/bundle/vim-scrollstatus | 1 + vim/config/plugins/lightline.vim | 5 +++-- vim/config/plugins/vim-scrollstatus.vim | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) create mode 160000 vim/bundle/vim-scrollstatus create mode 100644 vim/config/plugins/vim-scrollstatus.vim diff --git a/.gitmodules b/.gitmodules index bab3109..8316d1e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/README.md b/README.md index 1c9d4e1..03f0f45 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/vim/bundle/vim-scrollstatus b/vim/bundle/vim-scrollstatus new file mode 160000 index 0000000..22a9291 --- /dev/null +++ b/vim/bundle/vim-scrollstatus @@ -0,0 +1 @@ +Subproject commit 22a929172aa83c045b802f3a6b2fadbab54dc95a diff --git a/vim/config/plugins/lightline.vim b/vim/config/plugins/lightline.vim index ab464e4..47587ee 100644 --- a/vim/config/plugins/lightline.vim +++ b/vim/config/plugins/lightline.vim @@ -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) diff --git a/vim/config/plugins/vim-scrollstatus.vim b/vim/config/plugins/vim-scrollstatus.vim new file mode 100644 index 0000000..01df4fc --- /dev/null +++ b/vim/config/plugins/vim-scrollstatus.vim @@ -0,0 +1 @@ +let g:scrollstatus_size = 10