Doc: make example for StartifyEntryFormat() use vim-devicons
This commit is contained in:
parent
d5a549a7b9
commit
e1716c4ef1
|
@ -780,12 +780,12 @@ will be replaced by their respective values.
|
||||||
`absolute_path` is self-explaining and `entry_path` is the same path but
|
`absolute_path` is self-explaining and `entry_path` is the same path but
|
||||||
potentially shortened, depending on options like |g:startify_relative_path|.
|
potentially shortened, depending on options like |g:startify_relative_path|.
|
||||||
|
|
||||||
So, let us assume there is a function `GetLogo(path)` that returns a unicode
|
Let us assume you have vim-devicons installed. That plugin has a function
|
||||||
logo depending on the filetype of a given file. Then you could prepend the
|
`WebDevIconsGetFileTypeSymbol()` which returns an icon depending on the given
|
||||||
logo to each Startify entry by putting this in your vimrc:
|
file. Prepend the logo to each Startify entry by putting this in your vimrc:
|
||||||
>
|
>
|
||||||
function! StartifyEntryFormat()
|
function! StartifyEntryFormat()
|
||||||
return 'GetLogo(absolute_path) ." ". entry_path'
|
return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path'
|
||||||
endfunction
|
endfunction
|
||||||
<
|
<
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
Loading…
Reference in a new issue