Skip to content

Commit

Permalink
fix: uncomment event emitter autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 11, 2024
1 parent 533608f commit e1cf25f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/blink/cmp/lib/event_emitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e1cf25f

Please sign in to comment.