From 983919aee26706ff546814ce053eebc5d9c961cf Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 18 Jan 2018 20:26:24 +0100 Subject: [PATCH] Make entry format customizable --- autoload/startify.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index b4e41da..54febfc 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -456,12 +456,11 @@ function! s:display_by_path(path_prefix, path_format, use_env) abort let oldfiles = call(get(g:, 'startify_enable_unsafe') ? 's:filter_oldfiles_unsafe' : 's:filter_oldfiles', \ [a:path_prefix, a:path_format, a:use_env]) - let entry_format = "s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index)))" - if exists('*WebDevIconsGetFileTypeSymbol') && get(g:, 'webdevicons_enable') - " support for vim-devicons - let entry_format .= ". WebDevIconsGetFileTypeSymbol(entry_path) .' '. entry_path" + let entry_format = "s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index))) ." + if exists('*StartifyEntryFormat') + let entry_format .= StartifyEntryFormat() else - let entry_format .= '. entry_path' + let entry_format .= 'entry_path' endif if !empty(oldfiles)