NerdTree: make the statusline configurable

Use the g:NerdTreeStatusline variable for configuring the
NerdTree statusline in the NerdTree window

closes #1705
This commit is contained in:
Christian Brabandt
2018-04-06 01:51:00 +02:00
parent 47bdae9067
commit bf3cc5ad9d
2 changed files with 7 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ endfunction
let s:script_path = tolower(resolve(expand('<sfile>:p:h')))
let s:filetype_overrides = {
\ 'nerdtree': [ 'NERD', '' ],
\ 'nerdtree': [ get(g:, 'NERDTreeStatusline', 'NERD'), '' ],
\ 'gundo': [ 'Gundo', '' ],
\ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ],
\ 'minibufexpl': [ 'MiniBufExplorer', '' ],