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

[Feature] Allow users to configure custom ways to choose which reference to open #39

Open
elkowar opened this issue Nov 7, 2021 · 4 comments

Comments

@elkowar
Copy link

elkowar commented Nov 7, 2021

I'd love to be able to integrate the find-references popup with plugins like https://github.com/folke/trouble.nvim
this would be pretty easy to implement if you either allowed users to provide some custom hook that decides how to select a location / provide some easy function that just opens "whatever" buffer@location in a popup.
Alternatively, a simple solution would be to make use of the vim-builtin quickfix / loclist menu, which tools like trouble can wrap

@elkowar elkowar changed the title Allow users to configure custom ways to choose which reference to open [Feature] Allow users to configure custom ways to choose which reference to open Nov 7, 2021
@rmagatti
Copy link
Owner

rmagatti commented Nov 7, 2021

Hey @elkowar trying to wrap my head around how that integration you mention would look like, got maybe a step by step desired flow you had in mind you can share with me?

@elkowar
Copy link
Author

elkowar commented Nov 12, 2021

I think the easiest approach would be to provide the option to use the quickfix/loclist. this would be an alternative to using Telescope. Many other tools exist that can change how the quickfix/loclist window behaves, such as https://github.com/kevinhwang91/nvim-bqf or the mentioned trouble.nvim.

@rmagatti
Copy link
Owner

Yeah that's probably the way to go.

@rmagatti rmagatti reopened this Nov 16, 2021
@rmagatti
Copy link
Owner

Closed accidentally.

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

No branches or pull requests

2 participants