From 65e0c15cca5510aaf6a150eb1742e1912fa3f54c Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 13 Oct 2023 12:33:22 -0500 Subject: [PATCH] fix(nvim): use correct autocmd event matching in lightbulb --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index 632a0b89..dbe31ed1 100644 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -42,7 +42,7 @@ return { "LightBulbSign", { text = text_icon, numhl = "DiagnosticSignHint", texthl = "DiagnosticSignHint", priority = 9 } ) - vim.api.nvim_create_autocmd("CursorHold,CursorHoldI", { + vim.api.nvim_create_autocmd({"CursorHold", "CursorHoldI"}, { callback = nvim_lightbulb.update_lightbulb, }) return {