dualfroz ea18b8e453 fix(buffer): keep the nvim cursor when nvim switches to another document
When nvim moves to a buffer whose document is not shown (e.g. a jump to a
global mark), vscode shows the document with the selection it saved last
time, and the layout sync then sends that selection back to nvim,
overwriting the position nvim jumped to.

Read the cursor of the current nvim window before showing the document
and apply it to the editor, so the layout sync sends nvim its own cursor.

Fixes #2699
2026-10-03 02:24:35 +02:00
S
Description
My contributions to vscode-neovim/vscode-neovim: 6 commits, 1 merged PRs
98 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 83.2%
Vim Script 10.5%
Lua 6.3%