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
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,9 @@
This is the Changelog for the vim-airline project.
## [Unreleased]
- New features
- Extensions:
- [Defx](https://github.com/Shougo/defx.nvim) support
## [0.10] - 2018-12-15
- New features

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() ||