nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.37k stars 285 forks source link

Show lightbulb only for cursor #1470

Open Kyren223 opened 1 week ago

Kyren223 commented 1 week ago

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