kosayoda / nvim-lightbulb

VSCode 💡 for neovim's built-in LSP.
MIT License
783 stars 27 forks source link

lightbulb on every line (action_kinds ignored) #60

Open eyalk11 opened 7 months ago

eyalk11 commented 7 months ago

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.