From 1d2a1ae353483d71e7095abefc6334701ec039e6 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 8 Feb 2018 00:01:13 +0800 Subject: [PATCH] Test startify --- config/plugins/vim-startify.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/plugins/vim-startify.vim b/config/plugins/vim-startify.vim index 6452a0ede..31a80882f 100644 --- a/config/plugins/vim-startify.vim +++ b/config/plugins/vim-startify.vim @@ -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) + echom a:path + return s:FILE.fticon(a:path) +endfunction + +function! StartifyEntryFormat() + return 'FileIcon(absolute_path) ." ". entry_path' +endfunction " vim:set et sw=2: