From e1cf25fea50593993777865b3cca1db556a4a90b Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Tue, 10 Dec 2024 23:13:23 -0500 Subject: [PATCH] fix: uncomment event emitter autocmd --- lua/blink/cmp/lib/event_emitter.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/blink/cmp/lib/event_emitter.lua b/lua/blink/cmp/lib/event_emitter.lua index 0387a8f7..d3939cb9 100644 --- a/lua/blink/cmp/lib/event_emitter.lua +++ b/lua/blink/cmp/lib/event_emitter.lua @@ -27,11 +27,11 @@ function event_emitter:emit(data) for _, callback in ipairs(self.listeners) do callback(data) end - -- if self.autocmd then - -- require('blink.cmp.lib.utils').schedule_if_needed( - -- function() vim.api.nvim_exec_autocmds('User', { pattern = self.autocmd, modeline = false, data = data }) end - -- ) - -- end + if self.autocmd then + require('blink.cmp.lib.utils').schedule_if_needed( + function() vim.api.nvim_exec_autocmds('User', { pattern = self.autocmd, modeline = false, data = data }) end + ) + end end return event_emitter