nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.41k stars 287 forks source link

Cursor goes to the leftmost split when the popup window is closed #1412

Open ghost opened 5 months ago

ghost commented 5 months ago

Describe the bug

So I use lsp and lspsga. Both work great except for when I have multiple splits, and maximize one using vim-maximizer. Then whenever I close the popup window, which was opened for reference or go to definition etc, the cursor goes to the leftmost split instead of the split from which the reference popup window was created.

Steps to reproduce

Setup lspsaga, lsp and vim-maximizer. then create splits, move to the right split, maximize it using vim-maximizer's commands then go to some definitions and close the popup. (try for a popup inside a popup as well)

Expected behavior

The cursor should stay on the split which created that popup window.

Neovim version (nvim -v)

0.9.5

lspsaga commit

d5aa1a0

Terminal name/version

st-256color

ghost commented 5 months ago

https://github.com/neovim/neovim/issues/28003#issuecomment-2016613537 Here's my config to use and test it.