kosayoda / nvim-lightbulb

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

Bug: Code Action shown, even when there is none available #43

Closed chrisgrieser closed 1 year ago

chrisgrieser commented 1 year ago
image

After the first time, the lightbulb is shown, it keeps on every appearing randomly at lines that do not even have a code action available. Tried with this minimal config:

require("nvim-lightbulb").setup {
    autocmd = {enabled = true},
}
vim.fn.sign_define("LightBulbSign", {text = "", texthl = "DiagnosticInfo", numhl = "", linehl = ""})
kosayoda commented 1 year ago

Hello, thanks for filing this issue.

I personally have noticed this before, but I can't reliably reproduce it. Do you have a piece of code + LSP that will reliably show an erroneous lightbulb? (does not have to be in the same place everytime, just that it does show up when it shouldn't) That would be very helpful.

kosayoda commented 1 year ago

Hello! Please file a new issue if this still happens with the latest release.