Files
lua-nvim/lua/cargdev/plugins/nvim-lightbulb.lua

63 lines
1.6 KiB
Lua

-- ============================================================================
-- nvim-lightbulb: Code actions indicator
-- ============================================================================
-- Shows a lightbulb icon in the sign column when LSP code actions are available.
-- Triggers on LspAttach event to check for available actions at cursor position.
-- Provides visual feedback without needing to manually query for code actions.
-- ============================================================================
return {
"kosayoda/nvim-lightbulb",
event = "LspAttach",
opts = {
priority = 10,
hide_in_unfocused_buffer = true,
link_highlights = true,
validate_config = "auto",
action_kinds = nil,
sign = {
enabled = true,
text = "💡",
hl = "LightBulbSign",
},
virtual_text = {
enabled = false,
text = "💡",
pos = "eol",
hl = "LightBulbVirtualText",
hl_mode = "combine",
},
float = {
enabled = false,
text = "💡",
hl = "LightBulbFloatWin",
win_opts = {
focusable = false,
},
},
status_text = {
enabled = false,
text = "💡",
text_unavailable = "",
},
number = {
enabled = false,
hl = "LightBulbNumber",
},
line = {
enabled = false,
hl = "LightBulbLine",
},
autocmd = {
enabled = true,
updatetime = 200,
events = { "CursorHold", "CursorHoldI" },
pattern = { "*" },
},
ignore = {
clients = {},
actions_without_kind = false,
},
},
}