-
Notifications
You must be signed in to change notification settings - Fork 215
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
Jump using ctrl-o not correct after navigating with lsp picker #979
Comments
Thanks for the suggestion! I can reproduce that indeed |
I noticed that you changed the type of the issue from "bug" into "feature-request". Was my assumption incorrect? |
I think it is reasonable to consider a bug as a deviation from documented and/or assumed during implementation behavior. In this particular case adding current position to jumplist is neither. |
I understand. Thanks! |
Should this also work with |
I don't think it should work because jumping with 'lsp' picker doesn't contribute to tag stack (hence the empty tag stack error). |
If it is open, then it is a part of plan to have this resolved. Otherwise it would have been closed. |
Looking at the way telescope.nvim handles lsp calls, they seem to add the location using the following: vim.cmd "normal! m'" Specifically for pickers from LSP type sources. Perhaps this would be useful. |
Contributing guidelines
Module(s)
mini.pick, mini.extra
Description
lsp_jump.mp4
When using
lsp definition
, I often jump back withctrl-o
. The jump is not correct.I also notice this behavior when using
lsp references
Neovim version
0.10
Steps to reproduce
Steps using the repro above:
repro init.lua
:30
, selecting the line with "clone"gd
andenter
ctrl-o
Close neovim and change the following:
Repeat steps 1 till 6. The cursor correctly jumps to line 30.
Expected behavior
When I jump back after using
Pick lsp scope="definition"
, the jump is correct.Actual behavior
Jump is incorrect.
The text was updated successfully, but these errors were encountered: