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

Create Configuration for IncludeDeclaration #312

Merged
merged 1 commit into from Jul 25, 2023
Merged

Create Configuration for IncludeDeclaration #312

merged 1 commit into from Jul 25, 2023

Conversation

rkk1995
Copy link
Contributor

@rkk1995 rkk1995 commented Jul 23, 2023

Context

Currently, when references, implementations, or definitions is called, includeDeclaration is set to true by default.

This is cumbersome when you are on a definition and call lsp_references when there is only 1 reference. Instead of instantly jumping to said reference, a Trouble window appears including that sole reference as well as the your current position.

I'm sure there may be other scenarios, but this is the one I most frequently run into.

This PR

This PR adds a include_declaration list in the config. Only modes that are in this list will include_declaration set to true. All current modes using it have been set as a default so it doesn't break anyones workflow.

Previously, this setting was defaulted to true. Now, it will only
be set to true for modes that are explicitly named.
@folke folke merged commit 7691d93 into folke:main Jul 25, 2023
@folke
Copy link
Owner

folke commented Jul 25, 2023

thanks!

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 this pull request may close these issues.

None yet

2 participants