zoomwintab extension added
This commit is contained in:
parent
87d4648172
commit
5902a23e78
|
@ -250,6 +250,11 @@ function! airline#extensions#load()
|
||||||
call add(s:loaded_ext, 'csv')
|
call add(s:loaded_ext, 'csv')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get(g:, 'airline#extensions#zoomwintab#enabled', 0)
|
||||||
|
call airline#extensions#zoomwintab#init(s:ext)
|
||||||
|
call add(s:loaded_ext, 'zoomwintab')
|
||||||
|
endif
|
||||||
|
|
||||||
if exists(':VimShell')
|
if exists(':VimShell')
|
||||||
let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
|
let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
" MIT License. Copyright (c) 2020 Dmitry Geurkov (d.geurkov@gmail.com)
|
||||||
|
" Plugin: https://github.com/troydm/zoomwintab.vim
|
||||||
|
" vim: et ts=2 sts=2 sw=2
|
||||||
|
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
|
|
||||||
|
" Avoid installing twice
|
||||||
|
if exists('g:loaded_vim_airline_zoomwintab')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
let g:loaded_vim_airline_zoomwintab = 1
|
||||||
|
|
||||||
|
let s:zoomwintab_status_zoomed_in = get(g:, 'airline#extensions#zoomwintab#status_zoomed_in', g:airline_left_alt_sep.' Zoomed')
|
||||||
|
let s:zoomwintab_status_zoomed_out = get(g:, 'airline#extensions#zoomwintab#status_zoomed_out', '')
|
||||||
|
|
||||||
|
function! airline#extensions#zoomwintab#apply(...)
|
||||||
|
call airline#extensions#prepend_to_section('gutter',
|
||||||
|
\ exists('t:zoomwintab') ? s:zoomwintab_status_zoomed_in : s:zoomwintab_status_zoomed_out)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! airline#extensions#zoomwintab#init(ext)
|
||||||
|
call a:ext.add_statusline_func('airline#extensions#zoomwintab#apply')
|
||||||
|
endfunction
|
Loading…
Reference in New Issue