nvimdev / nvimdev/lspsaga.nvim

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

Open
#1,412 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
3.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the lspsaga popup workflow with multiple splits, vim-maximizer, and a nested popup using the commands described in the issue. Trace the popup-close handling and verify that closing each popup leaves the cursor in the split that created it, including after maximizing a split.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.