blob: 71ebbf2d7fce719519b05ad0b1234e93902b4887 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
local autocmd = vim.api.nvim_create_autocmd -- Create autocommand
Close nvim-tree if last window remaining
autocmd('BufEnter', {
pattern = '*',
command = 'if (winnr("$") ==1 && &filetype == "nvimtree") | q | endif'
})
require('nvim-tree').setup {
}
|