Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Is possible to persist nvim-tree when switching between tabs? #2606

diegoulloao started this conversation in Ideas
Discussion options

I'd to see nvim-tree persisting when switching between tabs.

I think you'd understand the idea by watching this video:

Screen.Recording.mp4

I tried to simulate the behavior. Not sure if is feasible to implement it as an option.
What's currently happening is that I've opened nvim-tree at the side of both buffers.

You must be logged in to vote

Replies: 3 comments · 1 reply

Comment options

This is planned: #2255

This is not a trivial change. As usual, Pull Requestsare most gratefully appreciated.

You must be logged in to vote
0 replies
Comment options

Not exactly persisting the same instance, but I reached an acceptable workaround for me with:

require('nvim-tree').setup({
	tab = {
		sync = {
			open  = true,
			close = true,
		},
	},
})
Untitled.mov

Which persists the tree size/state across tabs

The main caveat is that resizing the tree doesn't automatically apply to other tabs

But if you resize with :NvimTreeResize, then open/close, they all reset to the same common size

Closest I'm going to get I think

You must be logged in to vote
0 replies
Comment options

is this the answer @diegoulloao and @alex-courtis : https://github.com/mikew/nvim-drawer?tab=readme-ov-file#nvim-tree

You must be logged in to vote
1 reply
@alex-courtis
Comment options

is this the answer @diegoulloao and @alex-courtis : https://github.com/mikew/nvim-drawer?tab=readme-ov-file#nvim-tree

That's the best mechanism, one that you have full control over.

#2255 will only remember the basics like size/filters etc. between tabs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.