You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When listing references of a function, the current reference isn't included in the list. Especially when it's a call reference and not the definition of the function, I find that to be somewhat irritating.
Describe the solution you'd like
I'd like a configuration option similar to the includeDeclaration parameter that the lsp spec defines. That would also include the one currently under the cursor.
Describe alternatives you've considered
Since the current behavior is hard-coded, I think currently the only alternative would be to use vim.lsp.buf.references() instead of trouble. But the quickfix list offers a way worse user experience compared to trouble.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
When listing references of a function, the current reference isn't included in the list. Especially when it's a call reference and not the definition of the function, I find that to be somewhat irritating.
Describe the solution you'd like
I'd like a configuration option similar to the
includeDeclaration
parameter that the lsp spec defines. That would also include the one currently under the cursor.Describe alternatives you've considered
Since the current behavior is hard-coded, I think currently the only alternative would be to use
vim.lsp.buf.references()
instead of trouble. But the quickfix list offers a way worse user experience compared to trouble.Additional context
No response
The text was updated successfully, but these errors were encountered: