2023-07-05 11:50:23 +08:00
|
|
|
"=============================================================================
|
|
|
|
" SpaceVimTabsManager.vim
|
|
|
|
" Copyright (c) 2016-2023 Wang Shidong & Contributors
|
|
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
|
|
|
" URL: https://spacevim.org
|
|
|
|
" License: GPLv3
|
|
|
|
"=============================================================================
|
|
|
|
|
2017-05-12 21:56:04 +08:00
|
|
|
if exists('g:_SpaceVimTabsManager_ftplugin')
|
|
|
|
finish
|
|
|
|
else
|
|
|
|
let g:_SpaceVimTabsManager_ftplugin = 1
|
|
|
|
endif
|
|
|
|
function! SpaceVimTabsManager#statusline(...)
|
|
|
|
if &ft ==# 'SpaceVimTabsManager'
|
2017-05-12 22:41:06 +08:00
|
|
|
call airline#extensions#apply_left_override('SpaceVimTabsManager', '')
|
2017-05-12 21:56:04 +08:00
|
|
|
" Alternatively, set the various w:airline_section variables
|
|
|
|
"let w:airline_section_a = 'SpaceVimPluginManager'
|
|
|
|
"let w:airline_section_b = ''
|
|
|
|
"let w:airline_section_c = ''
|
|
|
|
"let w:airline_render_left = 1
|
|
|
|
"let w:airline_render_right = 0
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
try
|
|
|
|
call airline#add_statusline_func('SpaceVimTabsManager#statusline')
|
|
|
|
catch
|
|
|
|
endtry
|