Просмотр исходного кода

Only set customized &stl if it's empty

References #118.
Marco Hinz 11 лет назад
Родитель
Сommit
e964a581d0
2 измененных файлов с 4 добавлено и 15 удалено
  1. 3 1
      autoload/startify.vim
  2. 1 14
      doc/startify.txt

+ 3 - 1
autoload/startify.vim

@@ -61,7 +61,9 @@ function! startify#insane_in_the_membrane() abort
         \ nolist
         \ nonumber
         \ noswapfile
-        \ statusline=\ startify
+  if empty(&statusline)
+    setlocal statusline=\ startify
+  endif
   if v:version >= 703
     setlocal norelativenumber
   endif

+ 1 - 14
doc/startify.txt

@@ -511,8 +511,7 @@ FAQ                                                               *startify-faq*
     |startify-faq-06|  CtrlP or NERDTree open a split in Startify!
     |startify-faq-07|  How do I get both NERDTree and Startify working at
                      startup?
-    |startify-faq-08|  Startify prevents my statusline plugin from working!
-    |startify-faq-09|  The session autoload feature is not working!
+    |startify-faq-08|  The session autoload feature is not working!
 
 ------------------------------------------------------------------------------
                                                                *startify-faq-01*
@@ -607,18 +606,6 @@ Put this in your vimrc:
 <
 ------------------------------------------------------------------------------
                                                                *startify-faq-08*
-Startify prevents my statusline plugin from working!~
-
-airline:
->
-    autocmd User Startified AirlineRefresh
-<
-lightline:
->
-    autocmd User Startified call lightline#update()
-<
-------------------------------------------------------------------------------
-                                                               *startify-faq-09*
 The session autoload feature is not working!~
 
 Do you have NERDTree installed by any chance? If so, try this: