-
Notifications
You must be signed in to change notification settings - Fork 177
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 list not taken into account with auto_jump #143
Comments
I'm currently working around this issue by manually setting a jumplist location before calling trouble: function()
vim.cmd [[normal m']]
trouble.close()
trouble.open "lsp_definitions"
end |
Same issue here. It's so frustrating. At the moment I just use the builtin 'vim.lsp.buf.definition' lua function to jump to definitions and use a different binding to use Trouble |
So THIS is the cause! The last couple of months this has frustrated the hell out of me, sometimes my "previous position" is just the top of the current file, meaning I completely lose my flow. It only dawned on me today that this happens whenever I "go to definition" (gd). This issue has been open since 2021, I guess I'm setting my LSP mappings back to default 😆 |
I stand corrected |
Yeah, sorry for the delay. I actualy use Telescope's go to definition myself, so didn't have this issue :) |
When jumping with
Trouble lsp_definitions
havingauto_jump
enabled, the jump list is not taken into account. Pressing<C-o>
should take the cursor back to the original position; instead it goes to whatever was on the jump list before that.I think this only happens when jumping in the same file, not when jumping across different files.
The text was updated successfully, but these errors were encountered: