-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Jumping to a reference/definition doesn't move the window #1365
Open
3 tasks done
Tracked by
#1261
Labels
Comments
Duplicate of #1027 |
@theol0403 |
I have met the same problem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.1
Operating system/version
Windows 11
Describe the bug
When peeking definitions (vscode: editor.action.peekDefinition) or peeking references (editor.action.referenceSearch.trigger, editor.action.goToReferences with multiple results), a dialog opens up to select where you'd like to jump to. This appears to work correctly. Selecting an entry in the list and pressing enter is supposed to then move the view/cursor to the selected location. Sometimes this works, and other times not.
To me, it looks like it works when the selected line to jump to was already visible on screen without having to scroll around. If you select a line/location that would require scrolling up, your cursor instead disappears, the page doesn't scroll, and you can't move around in the file. Scrolling down works fine if you press enter twice. Pressing seems to fix the issue, but the cursor is left back where you originally were when searching references.
Steps To Reproduce
Tested using empty init.lua and only one other plugin.
Expected Behavior
I'd expect that when selecting a reference from editor.action.referenceSearch.trigger by pressing enter, my cursor would be moved to the beginning of the reference and the view would be scrolled to see it.
Without the vscode-neovim plugin (so in my case only Lua extension) when I trigger editor.action.referenceSearch.trigger by either using Ctrl+Shift+P and typing it out or right clicking on the symbol and selecting Peek -> Peek References, I'm able to scroll around the pop up with arrow keys. Then I can press enter on a selection and my view is centered on the reference. Then I can press escape and my cursor is at the beginning of the reference.
The text was updated successfully, but these errors were encountered: