mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10: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
|
else
|
||||||
let g:_SpaceVimPlugManager_ftplugin = 1
|
let g:_SpaceVimPlugManager_ftplugin = 1
|
||||||
endif
|
endif
|
||||||
function! MyPlugin(...)
|
function! SpaceVimPlugManager#statusline(...)
|
||||||
if &ft ==# 'SpaceVimPlugManager'
|
if &ft ==# 'SpaceVimPlugManager'
|
||||||
call airline#extensions#apply_left_override('SpaceVimPlugins', '')
|
call airline#extensions#apply_left_override('SpaceVimPlugins', '')
|
||||||
" Alternatively, set the various w:airline_section variables
|
" Alternatively, set the various w:airline_section variables
|
||||||
@ -15,6 +15,6 @@ function! MyPlugin(...)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
try
|
try
|
||||||
call airline#add_statusline_func('MyPlugin')
|
call airline#add_statusline_func('SpaceVimPlugManager#statusline')
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
|
Loading…
Reference in New Issue
Block a user