extensions: Add defx support

closes #1850
This commit is contained in:
petobens
2019-01-05 16:51:47 -03:00
committed by Christian Brabandt
parent d68c9bbeb2
commit fa5910eb14
2 changed files with 7 additions and 0 deletions

View File

@@ -217,6 +217,10 @@ function! airline#extensions#load()
let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
endif
if exists(':Defx')
let s:filetype_overrides['defx'] = ['defx', '%{b:defx.paths[0]}']
endif
if get(g:, 'airline#extensions#branch#enabled', 1) && (
\ airline#util#has_fugitive() ||
\ airline#util#has_lawrencium() ||