diff --git a/ftplugin/SpaceVimPlugManager.vim b/ftplugin/SpaceVimPlugManager.vim index 33218171e..18703a003 100644 --- a/ftplugin/SpaceVimPlugManager.vim +++ b/ftplugin/SpaceVimPlugManager.vim @@ -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