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

lightbulb on every line (action_kinds ignored) #60

Open
eyalk11 opened this issue Jan 27, 2024 · 1 comment
Open

lightbulb on every line (action_kinds ignored) #60

eyalk11 opened this issue Jan 27, 2024 · 1 comment

Comments

@eyalk11
Copy link

eyalk11 commented Jan 27, 2024

I have the following config:

 require("nvim-lightbulb").setup({
 autocmd = { enabled = true },
 action_kinds= {'quickfix', 'refactor'},
 number = {
     enabled = true,
     -- Highlight group to highlight the number column if there is a lightbulb.
     hl = "LightBulbNumber",
 }
})

In python-lsp-ruff there is the following code:

def create_fix_all_code_action(
    document: Document,
    settings: PluginSettings,
) -> CodeAction:
    title = "Ruff: Fix All"
    kind = CodeActionKind.SourceFixAll
....

Ruff fix all is for the entire document. Still, lightbulb won't ignore this fix, and would be active for every line in documents where ruff finds any change!

The kind is of course under source and should be ignored.

@kosayoda
Copy link
Owner

Hello, do you have a minimal reproducible example?

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