Initial commit
This commit is contained in:
6
laptop/nvim/lua/config/plugins/nerdtree.lua
Normal file
6
laptop/nvim/lua/config/plugins/nerdtree.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
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
|
||||
]]
|
||||
Reference in New Issue
Block a user