nvim-tree/nvim-tree.lua

Could I toggle or open nvim-tree in the current split rather than in a separate extra split on the left?

Closed this issue · 1 comments

When I open nvim-tree, it splits the screen on the left and show the tree in there. But I hope it will not show the screen, and open on the current split that my cursor stays. Is there such configuration?

I tried this, but it failed to work:

vim.keymap.set("n", "<leader>n", ":NvimTreeToggle<cr>", {current_window=true})