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

bug: When both focus and follow are true, follow does not work #551

Closed
4 tasks done
MasouShizuka opened this issue Jul 16, 2024 · 2 comments
Closed
4 tasks done

bug: When both focus and follow are true, follow does not work #551

MasouShizuka opened this issue Jul 16, 2024 · 2 comments
Labels
bug Something isn't working stale

Comments

@MasouShizuka
Copy link

Did you check docs and existing issues?

  • I have read all the trouble.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of trouble.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.0

Operating system/version

Windows 11 22631

Describe the bug

When both focus and follow are true, and when the cursor is at an item, the cursor in the opened trouble window cannot be at the item position, but at the first row and first column position.

Steps To Reproduce

  1. set focus = true and follow = true
  2. Move the cursor to a variable
  3. run require("trouble").toggle({ mode = "lsp_references" })

Expected Behavior

In the opened trouble window, the cursor can be located at the location of the item.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/trouble.nvim", opts = {} },
    -- add any other plugins here
  },
})
@MasouShizuka MasouShizuka added the bug Something isn't working label Jul 16, 2024
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Aug 15, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant