mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 14:20:15 +08:00
parent
d421c35f94
commit
13628d698d
|
@ -4,7 +4,8 @@
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
function! airline#extensions#scrollbar#calculate() abort
|
function! airline#extensions#scrollbar#calculate() abort
|
||||||
if winwidth(0) > 200 && get(w:, 'airline_active', 0)
|
if winwidth(0) > get(g:, 'airline#extensions#scrollbar#minwidth', 200)
|
||||||
|
\ && get(w:, 'airline_active', 0)
|
||||||
let overwrite = 0
|
let overwrite = 0
|
||||||
if &encoding ==? 'utf-8' && !get(g:, 'airline_symbols_ascii', 0)
|
if &encoding ==? 'utf-8' && !get(g:, 'airline_symbols_ascii', 0)
|
||||||
let [left, right, middle] = [ '|', '|', '█']
|
let [left, right, middle] = [ '|', '|', '█']
|
||||||
|
|
|
@ -1394,6 +1394,10 @@ Displays an Ascii Scrollbar for active windows with a width > 200.
|
||||||
|
|
||||||
* enable/disable scrollbar integration >
|
* enable/disable scrollbar integration >
|
||||||
let g:airline#extensions#scrollbar#enabled = 1 (default: 0)
|
let g:airline#extensions#scrollbar#enabled = 1 (default: 0)
|
||||||
|
* set minimum window width, below which the scollbar
|
||||||
|
will be disabled >
|
||||||
|
let g:airline#extensions#scrollbar#minwidth = 100 (default: 200)
|
||||||
|
|
||||||
------------------------------------- *airline-taboo*
|
------------------------------------- *airline-taboo*
|
||||||
taboo.vim <https://github.com/gcmt/taboo.vim>
|
taboo.vim <https://github.com/gcmt/taboo.vim>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user