From bf3cc5ad9d825c6db7e0717104279ec85538d8d9 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Fri, 6 Apr 2018 01:51:00 +0200 Subject: [PATCH] NerdTree: make the statusline configurable Use the g:NerdTreeStatusline variable for configuring the NerdTree statusline in the NerdTree window closes #1705 --- autoload/airline/extensions.vim | 2 +- doc/airline.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 3b36ba9f..c4534c1d 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -22,7 +22,7 @@ endfunction let s:script_path = tolower(resolve(expand(':p:h'))) let s:filetype_overrides = { - \ 'nerdtree': [ 'NERD', '' ], + \ 'nerdtree': [ get(g:, 'NERDTreeStatusline', 'NERD'), '' ], \ 'gundo': [ 'Gundo', '' ], \ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ], \ 'minibufexpl': [ 'MiniBufExplorer', '' ], diff --git a/doc/airline.txt b/doc/airline.txt index 352b39ad..72f27139 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -403,6 +403,12 @@ vim-bufferline * determine whether bufferline will overwrite customization variables > let g:airline#extensions#bufferline#overwrite_variables = 1 < +------------------------------------- *airline-nerdtree* +NerdTree + +Airline displays the Nerdtree specific statusline (which can be configured using +the |'NerdTreeStatusline'|variable. + ------------------------------------- *airline-fugitiveline* This extension hides the fugitive://**// part of the buffer names, to only show the file name as if it were in the current working tree.