diff options
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/plugins/nerdtree.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/plugins/nerdtree.vim b/.config/nvim/plugins/nerdtree.vim index 57ffba2..3a8ad50 100644 --- a/.config/nvim/plugins/nerdtree.vim +++ b/.config/nvim/plugins/nerdtree.vim @@ -29,6 +29,11 @@ autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTa " set status line on tab switch function NERDTreeStatusLineTabSwitch() + " only when in non-meaningful window + if index(g:NERDTreeStatusLineTabSwitchFiletypes, &filetype) == -1 + return + endif + let tab_nr = tabpagenr() let buffer_list = tabpagebuflist(tab_nr) |