lspsaga.nvim
lspsaga.nvim copied to clipboard
bug: lightbulb doesnt work properly
Describe the bug
https://github.com/user-attachments/assets/f9670076-4567-48de-ade5-54a85a5f94f9
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)