Make entry format customizable
This commit is contained in:
parent
4f1cd14e94
commit
983919aee2
|
@ -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',
|
let oldfiles = call(get(g:, 'startify_enable_unsafe') ? 's:filter_oldfiles_unsafe' : 's:filter_oldfiles',
|
||||||
\ [a:path_prefix, a:path_format, a:use_env])
|
\ [a:path_prefix, a:path_format, a:use_env])
|
||||||
|
|
||||||
let entry_format = "s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index)))"
|
let entry_format = "s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index))) ."
|
||||||
if exists('*WebDevIconsGetFileTypeSymbol') && get(g:, 'webdevicons_enable')
|
if exists('*StartifyEntryFormat')
|
||||||
" support for vim-devicons
|
let entry_format .= StartifyEntryFormat()
|
||||||
let entry_format .= ". WebDevIconsGetFileTypeSymbol(entry_path) .' '. entry_path"
|
|
||||||
else
|
else
|
||||||
let entry_format .= '. entry_path'
|
let entry_format .= 'entry_path'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !empty(oldfiles)
|
if !empty(oldfiles)
|
||||||
|
|
Loading…
Reference in a new issue