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

bug: lightbulb doesnt work properly #1509

Open
arztareef opened this issue Dec 12, 2024 · 0 comments
Open

bug: lightbulb doesnt work properly #1509

arztareef opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@arztareef
Copy link

Describe the bug

Screen.Recording.2024-12-12.at.10.42.15.PM.mov

the bug: sometimes the bulb displays the bulb on a line even when a code action isnt available

Steps to reproduce

step 1: use the plugin config provided below:

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    'nvimdev/lspsaga.nvim',
    config = function()
      require('lspsaga').setup({
        lightbulb = {
          enable = true,
          virtual_text = false, -- happens w/ virtual_text as well though.
        },
        ui = {
          code_action = '',
        }
      })
    end,
  },
})

step 2: open a lua file w/ lua_ls LSP
step 3: type pr in insert mode
step 4: delete the pr line using dd motion

if all done correctly, the lightbulb should stay in the line deleted after 'pr' like the video provided above

Expected behavior

The code_action sign should be removed when there isnt a code action available for the line

Neovim version (nvim -v)

NVIM v0.11.0-dev-1341+g5eda7aafe9

lspsaga commit

latest (2710a0a)

Terminal name/version

iTerm 3.4.23 (occurs in other terminals as well, e.g st 0.9.5)

@arztareef arztareef added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant