mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Merge pull request #1389 from wsdjeg/welcome
Add icon to welcome page(startify)
This commit is contained in:
commit
753205a503
@ -7,7 +7,7 @@ function! SpaceVim#layers#ui#plugins() abort
|
||||
\ ['tenfyzhong/tagbar-proto.vim', {'merged': 0}],
|
||||
\ ['lvht/tagbar-markdown',{'merged' : 0}],
|
||||
\ ['t9md/vim-choosewin', {'merged' : 0}],
|
||||
\ ['mhinz/vim-startify', {'loadconf' : 1}],
|
||||
\ ['mhinz/vim-startify', {'loadconf' : 1, 'merged' : 0}],
|
||||
\ ['blueyed/vim-diminactive', {'merged' : 0}],
|
||||
\ ]
|
||||
if get(g:, '_spacevim_statusline_loaded', 0) == 0
|
||||
|
@ -1,4 +1,5 @@
|
||||
let s:NUM = SpaceVim#api#import('data#number')
|
||||
let s:FILE = SpaceVim#api#import('file')
|
||||
fu! s:update_logo()
|
||||
if !exists('g:startify_custom_header') && !exists('g:_spacevim_welcome_banners')
|
||||
let g:startify_custom_header = [
|
||||
@ -61,4 +62,12 @@ if !exists('g:startify_custom_header')
|
||||
endif
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['a','s'], 'Startify | doautocmd WinEnter', 'fancy start screen',1)
|
||||
|
||||
function! FileIcon(path)
|
||||
let icon = s:FILE.fticon(a:path)
|
||||
return empty(icon) ? ' ' : icon
|
||||
endfunction
|
||||
|
||||
function! StartifyEntryFormat()
|
||||
return 'FileIcon(entry_path) ." ". entry_path'
|
||||
endfunction
|
||||
" vim:set et sw=2:
|
||||
|
Loading…
Reference in New Issue
Block a user