vim-airline/autoload/airline/extensions/ctrlspace.vim

22 lines
754 B
VimL
Raw Normal View History

2019-03-25 11:27:10 +00:00
" MIT License. Copyright (c) 2013-2019 Bailey Ling et al.
2019-11-08 18:58:22 +00:00
" Plugin: https://github.com/szw/vim-ctrlspace
" vim: et ts=2 sts=2 sw=2
scriptencoding utf-8
function! airline#extensions#ctrlspace#statusline(...)
2019-11-08 18:58:22 +00:00
let spc = g:airline_symbols.space
let padding = spc . spc . spc
let cs = ctrlspace#context#Configuration().Symbols.CS
let b = airline#builder#new({ 'active': 1 })
2019-11-08 18:58:22 +00:00
call b.add_section('airline_b', cs . padding . ctrlspace#api#StatuslineModeSegment(s:padding))
call b.split()
2019-11-08 18:58:22 +00:00
call b.add_section('airline_x', spc . ctrlspace#api#StatuslineTabSegment() . spc)
return b.build()
endfunction
function! airline#extensions#ctrlspace#init(ext)
let g:CtrlSpaceStatuslineFunction = "airline#extensions#ctrlspace#statusline()"
endfunction