Open itsramiel opened 4 days ago
My workaround is:
vim.keymap.set("n", "<C-t>", function()
api.node.open.tab()
vim.cmd("-tabnext")
api.tree.toggle()
vim.cmd("tabnext")
end, opts("Open in New Tab"))
But I would love for this to be fixed internally 🙏
Tab behaviour will be overhauled in
In the meantime, a Pull Request would be most gratefully appreciated.
Description
If I have one buffer open, say
file1.txt
, then I open nvim tree and open another file in a new tab usingapi.node.open.tab, opts("Open in New Tab")
, then the file is opened correctly in a new tab but the previously opened tab file is replaced with NvimTree. This causes an issue because if I wanted to go back to the previous tab, expecting it to be file1, then I see the nvim tree and I have to close it to see the file1.Recording:
Neovim version
Operating system and version
Macos 14.6.1
Windows variant
No response
nvim-tree version
"nvim-tree.lua": { "branch": "master", "commit": "d41b4ca013ed89e41b9c0ecbdae5f1633e42f7fa" },
Clean room replication