From 1fdad0db6edf53f71a2fdfd8934eef03a4f947ec Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 30 May 2025 15:23:21 +0200 Subject: [PATCH] Add nvim lightbulb to visualize code actions --- nvim/lazy-lock.json | 1 + nvim/lua/plugs/nvim-lightbulb.lua | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 nvim/lua/plugs/nvim-lightbulb.lua diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 6823540..67a1962 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -24,6 +24,7 @@ "nvim-dap-repl-highlights": { "branch": "master", "commit": "a7512fc0a0de0c0be8d58983939856dda6f72451" }, "nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "df66808cd78b5a97576bbaeee95ed5ca385a9750" }, + "nvim-lightbulb": { "branch": "master", "commit": "aa3a8b0f4305b25cfe368f6c9be9923a7c9d0805" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, "nvim-surround": { "branch": "main", "commit": "0e62500b98f4513feaaf7425c135472457ea5b7d" }, "nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, diff --git a/nvim/lua/plugs/nvim-lightbulb.lua b/nvim/lua/plugs/nvim-lightbulb.lua new file mode 100644 index 0000000..edccacc --- /dev/null +++ b/nvim/lua/plugs/nvim-lightbulb.lua @@ -0,0 +1,12 @@ +return { + "kosayoda/nvim-lightbulb", + opts = { + hide_in_unfocused_buffer = true, + code_lenses = true, + sign = { enabled = false, }, + virtual_text = { enabled = true, }, + float = { enabled = false, }, + status_text = { enabled = false, }, + autocmd = { enabled = true, }, + }, +}