Selaa lähdekoodia

Merge pull request #76 from adelarsq/patch-1

Add ryanoasis/vim-devicons support
jlanzarotta 7 vuotta sitten
vanhempi
sitoutus
268cd59297
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      plugin/bufexplorer.vim

+ 5 - 0
plugin/bufexplorer.vim

@@ -751,6 +751,11 @@ function! s:BuildBufferList()
 
         let line = buf.attributes." "
 
+        if exists("g:loaded_webdevicons") 
+            let line .= WebDevIconsGetFileTypeSymbol(buf.shortname)
+            let line .= " "
+        endif
+
         " Are we to split the path and file name?
         if g:bufExplorerSplitOutPathName
             let type = (g:bufExplorerShowRelativePath) ? "relativepath" : "path"