Skip to content
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

auto_jump does not work when the Trouble window is open #144

Closed
dessaya opened this issue Dec 23, 2021 · 1 comment · Fixed by #277
Closed

auto_jump does not work when the Trouble window is open #144

dessaya opened this issue Dec 23, 2021 · 1 comment · Fixed by #277

Comments

@dessaya
Copy link

dessaya commented Dec 23, 2021

Trouble lsp_definitions with auto_jump works fine, unless the Trouble window is already open. In that case, the Trouble window is focused instead.

@JulesNP
Copy link

JulesNP commented Oct 18, 2022

I've been having the same issue. As a workaround, I've setup the functions for my mappings as follows:

function()
    vim.cmd [[normal m']]
    trouble.close()
    trouble.open "lsp_definitions"
end

The m' is also used to workaround issue #143 by manually setting a jumplist position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants