Skip to content

Migrate To winbuffix #2724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
petobens opened this issue Mar 25, 2024 · 4 comments
Open

Migrate To winbuffix #2724

petobens opened this issue Mar 25, 2024 · 4 comments
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement

Comments

@petobens
Copy link

I believe this would be really helpul to avoid loading a buffer within the nvimtree window.

@alex-courtis
Copy link
Member

I'm not quite sure what you're referring to; I'm not able to find that :help winfixbuf

Do you have something you can demonstrate?

@petobens
Copy link
Author

Sure. The winfixbuf option won't allow me to switch windows/buffers within the nvimtree buffers:

winfix2

See here for details.

@alex-courtis
Copy link
Member

Ah that's fantastic! Solves a lot of issues for plugins displaying in windows.

It can be used for actions.open_file.eject, removing the need for _prevent_buffer_override

Unfortunately we're going to need to wait for 0.10 to be released, however we can do this today, behind a vim.fn.has("nvim-0.10") == 1 feature flag.

As usual, pull requests are most gratefully appreciated, see CONTRIBUTING.md

@alex-courtis alex-courtis added QOL Quality Of Life Improvement PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated neovim 0.10 and removed awaiting feedback labels Mar 30, 2024
@petobens
Copy link
Author

petobens commented Apr 2, 2024

Thanks for the feedback. See #2738

@alex-courtis alex-courtis changed the title Add winfixbuf to view options Migrate To winbuffix Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement
Projects
None yet
Development

No branches or pull requests

2 participants