Skip to content
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

bug: Buffers open in wrong window #1517

Open
4 tasks done
GCBallesteros opened this issue Mar 6, 2025 · 0 comments
Open
4 tasks done

bug: Buffers open in wrong window #1517

GCBallesteros opened this issue Mar 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@GCBallesteros
Copy link

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.0

Operating system/version

MacOS 13.6

Describe the bug

When the cursor is placed on a window with a terminal buffer (created with :term) if the user attempts to switch to another buffer via the picker the buffer will open on another window.

Steps To Reproduce

  1. Start neovim
  2. Split :vs
  3. Open a terminal on one of the splits :term
  4. Switch to other window and open a two files
  5. Switch to the window with the terminal
  6. Attempt to pick buffer

The buffer will open on the non-terminal window

Expected Behavior

Buffers should always open on the window the cursor is placed when the picker is invoked.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
spec = {
  {
    "folke/snacks.nvim",
    opts = { picker = {} },
  },
},
})
@GCBallesteros GCBallesteros added the bug Something isn't working label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant