From b917ecb7d95a31b72d82cb9a339cfa1f76eea5ab Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 28 Feb 2023 17:52:23 +0100 Subject: [nvim] run nerdtree tab switch for relevant file types only --- .config/nvim/plugins/nerdtree.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/nvim/plugins') 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) -- cgit v1.2.3