function UtilityWinfiletypes() let winfiletypes = [] for window_nr in range(1, winnr('$')) let filetype = getbufvar(winbufnr(window_nr), '&filetype') call add(winfiletypes, filetype) endfor return winfiletypes endfunction let g:NERDTreeNoInitFiletypes = ["DiffviewFiles"] let g:NERDTreeStatusLineTabSwitchFiletypes = ["nerdtree", "help"] source ~/.config/nvim/config/keys.vim source ~/.config/nvim/config/config.vim source ~/.config/nvim/plugins.vim