summaryrefslogtreecommitdiffstats
path: root/after/plugin/lightbulb.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-06-26 11:35:24 -0400
committerSquibid <me@zacharyscheiman.com>2023-06-26 11:35:24 -0400
commit9e694c03721af13a31aedbfc365203cf66b370b4 (patch)
tree898c136e609a069b7342f5b438b8e85838a8bf7b /after/plugin/lightbulb.lua
parentd968ff639be3b6ecddb6ae224f3804f4eea566ba (diff)
downloadnvim-9e694c03721af13a31aedbfc365203cf66b370b4.tar.gz
nvim-9e694c03721af13a31aedbfc365203cf66b370b4.tar.bz2
nvim-9e694c03721af13a31aedbfc365203cf66b370b4.zip
add plugin configs & mess with the binds
Diffstat (limited to '')
-rw-r--r--after/plugin/lightbulb.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/after/plugin/lightbulb.lua b/after/plugin/lightbulb.lua
new file mode 100644
index 0000000..00fcfcc
--- /dev/null
+++ b/after/plugin/lightbulb.lua
@@ -0,0 +1,23 @@
+local status_ok, lightbulb = pcall(require, "nvim-lightbulb")
+if not status_ok then
+ return
+end
+
+lightbulb.setup {
+ sign = {
+ enabled = true,
+ priority = 10000, -- make this really high so it always shows
+ },
+ autocmd = {
+ enabled = true,
+ pattern = {"*"},
+ events = {"CursorHold", "CursorHoldI"}
+ }
+}
+
+vim.fn.sign_define('LightBulbSign', {
+ text = "f",
+ texthl = "LightBulbSignTxthl",
+ linehl="",
+ numhl="",
+})