Explorar o código

Merge pull request #76 from adelarsq/patch-1

Add ryanoasis/vim-devicons support
jlanzarotta %!s(int64=7) %!d(string=hai) anos
pai
achega
268cd59297
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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"