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

Show lightbulb only for cursor #1470

Open
Kyren223 opened this issue Jul 3, 2024 · 0 comments
Open

Show lightbulb only for cursor #1470

Kyren223 opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kyren223
Copy link

Kyren223 commented Jul 3, 2024

Is your feature request related to a problem? Please describe.
The code action from lspsaga is cursor-based rather than line based but the lightbulb is visible for the entire line which causes a scenario where you see the light bulb, but code action is available.

Describe the solution you'd like
A setting (boolean) for lightbulb named something like "cursor_only" that when set to false acts the same as now, but when set to true, only shows the lightbulb if a code action is available (based on cursor rather than entire line)

Describe alternatives you've considered
N/A

Additional context
Maybe a diff feature request, but having a list of patterns for blacklisting code actions, and if all code actions are "blacklisted" then don't display the lightbulb (that way, u can only show a bulb when "important" code actions are available), also can work with a whitelist

@Kyren223 Kyren223 added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant