Pārlūkot izejas kodu

Merge pull request #76 from adelarsq/patch-1

Add ryanoasis/vim-devicons support
jlanzarotta 7 gadi atpakaļ
vecāks
revīzija
268cd59297
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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"