[adjust] vista's extension width
This commit is contained in:
parent
19d1990f86
commit
0cebac6bb0
|
@ -7,12 +7,12 @@ if !get(g:, 'loaded_vista', 0)
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! airline#extensions#vista#currenttag()
|
function! airline#extensions#vista#currenttag() abort
|
||||||
if get(w:, 'airline_active', 0)
|
if get(w:, 'airline_active', 0)
|
||||||
return get(b:, 'vista_nearest_method_or_function', '')
|
return airline#util#shorten(get(b:, 'vista_nearest_method_or_function', ''), 91, 9)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#vista#init(ext)
|
function! airline#extensions#vista#init(ext) abort
|
||||||
call airline#parts#define_function('vista', 'airline#extensions#vista#currenttag')
|
call airline#parts#define_function('vista', 'airline#extensions#vista#currenttag')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue