7 lines
246 B
Lua
7 lines
246 B
Lua
vim.keymap.set('n', '<leader>nt', ':NERDTreeToggle<CR>')
|
|
|
|
vim.cmd[[
|
|
" Close the tab if NERDTree is the only window remaining in it.
|
|
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
|
]]
|