diff --git a/nvim/lua/filemanager.lua b/nvim/lua/filemanager.lua index 4042106..7dac607 100644 --- a/nvim/lua/filemanager.lua +++ b/nvim/lua/filemanager.lua @@ -76,3 +76,5 @@ require'nvim-tree'.setup { cmd = 'trash' } } + +vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")