ea18b8e453c1eac7bb0a23cc2608d57c46a3a7e8
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
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%