mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Rename statusline func
This commit is contained in:
parent
1bc506f3a7
commit
0c04c1c424
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user