From 664ed502ed405e611019d86154cb4d4a6c230c1d Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 22 Apr 2017 16:32:32 +0200 Subject: [PATCH] Use vim-devicons only when it's enabled References https://github.com/mhinz/vim-startify/commit/c193556225af93405cc87518781d48cf932efc2f#commitcomment-21866826 --- autoload/startify.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index cd65848..17f9b09 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -447,7 +447,8 @@ function! s:display_by_path(path_prefix, path_format, use_env) abort \ [a:path_prefix, a:path_format, a:use_env]) let entry_format = "s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index)))" - if exists('*WebDevIconsGetFileTypeSymbol') " support for vim-devicons + if exists('*WebDevIconsGetFileTypeSymbol') && get(g:, 'webdevicons_enable') + " support for vim-devicons let entry_format .= ". WebDevIconsGetFileTypeSymbol(entry_path) .' '. entry_path" else let entry_format .= '. entry_path'