nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua

Repository from Github https://github.comnvim-tree/nvim-tree.luaRepository from Github https://github.comnvim-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?

CoinCheung opened this issue · 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})