preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.56k stars 1.44k forks source link

how to set up properly nerdtree with lunarvim #1312

Closed huutrinh68 closed 8 months ago

huutrinh68 commented 2 years ago

Hi there, I used nerdtree with lunarvim, but when I pressed Enter key to open a file, it was only half of the size, not full-size of the window? How can I fix it? image

This is my config in lua image

Thanks

rzvxa commented 8 months ago

NERDTree by default should use the previous window for opening the selected node. The <CR> shortcut is bound to a custom open operation which you can customize yourself. Use :help NERDTreeCustomOpenArgs for more information.

You can also use the o for explicitly opening the node in the previous windows instead of creating a new window for it.