1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

Rename statusline func

This commit is contained in:
wsdjeg 2017-04-22 10:58:26 +08:00
parent 1bc506f3a7
commit 0c04c1c424

View File

@ -3,7 +3,7 @@ if exists('g:_SpaceVimPlugManager_ftplugin')
else
let g:_SpaceVimPlugManager_ftplugin = 1
endif
function! MyPlugin(...)
function! SpaceVimPlugManager#statusline(...)
if &ft ==# 'SpaceVimPlugManager'
call airline#extensions#apply_left_override('SpaceVimPlugins', '')
" Alternatively, set the various w:airline_section variables
@ -15,6 +15,6 @@ function! MyPlugin(...)
endif
endfunction
try
call airline#add_statusline_func('MyPlugin')
call airline#add_statusline_func('SpaceVimPlugManager#statusline')
catch
endtry