aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/_vim9script.lua
diff options
context:
space:
mode:
authorAu. <acehinnnqru@gmail.com>2025-04-17 22:46:18 +0800
committerGitHub <noreply@github.com>2025-04-17 07:46:18 -0700
commit6926fc1615c94a0172b455e64d025c5851485831 (patch)
tree56c71738062c5e6b436f5f22de6e183d0ea09569 /runtime/lua/_vim9script.lua
parent2fcdeb0128933ac28baeb645eb691c559560920e (diff)
downloadrneovim-6926fc1615c94a0172b455e64d025c5851485831.tar.gz
rneovim-6926fc1615c94a0172b455e64d025c5851485831.tar.bz2
rneovim-6926fc1615c94a0172b455e64d025c5851485831.zip
fix(lsp): opts.reuse_win does not jump if buf is already open #33476
Problem: `vim.lsp.buf.[implementation|definition|...]({ reuse_win = true })` does not jump cursor to existing window if buffer is already open. Steps to reproduce: 1. `nvim repro.lua` 2. Insert anything that lsp can read to open the library definition/implementation, e.g., `vim.keymap.set` 3. open `repro.lua` buffer and the library buffer side by side. 4. type `gd` over `set` to jump to the library definition. The open buffer is scrolled to the target line, but cursor does not jump. Solution: Call nvim_set_current_win if necessary.
Diffstat (limited to 'runtime/lua/_vim9script.lua')
0 files changed, 0 insertions, 0 deletions