From 205d3d76bfc9b7b755a87327442d72cc6d70cdea Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 21 Mar 2020 15:51:47 +0100 Subject: [PATCH] init: Disable devicons on term 'linux' --- init.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 20d9cb6..be243ee 100644 --- a/init.vim +++ b/init.vim @@ -45,8 +45,13 @@ syntax on """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some global plugin settings -" Enable loading of devicons -let g:enable_plugin_devicons = 1 +" Disable devicons on linux terminal +if !has("terminfo") || &term == 'linux' + let g:enable_plugin_devicons=0 +" Enable loading of devicons on all others +else + let g:enable_plugin_devicons=1 +endif runtime plugsetup.vim -- 2.39.5