Skip to content

Commit 450a6b8

Browse files
committed
nvim_exec_autocmds
1 parent ce83175 commit 450a6b8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lua/fittencode/inline/session.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ function Session:accept(scope)
187187
vim.defer_fn(function() self.trigger_inline_suggestion({ force = true, mode = self.mode }) end, 30)
188188
end
189189
debug_log(self, 'Accept scope = {}', scope)
190-
vim.api.nvim_exec_autocmds('User', { pattern = 'FittenCodeInlineAccepted', modeline = false, data = { scope = scope } })
190+
vim.api.nvim_exec_autocmds('User', { pattern = 'FittenCodeInlineAccepted', data = { scope = scope } })
191+
-- vim.api.nvim_exec_autocmds('User', { pattern = 'FittenCodeInlineAccepted', data = { scope = scope } })
192+
-- local autocmds = vim.api.nvim_get_autocmds({ event = 'User', pattern = 'FittenCodeInlineAccepted' })
193+
-- debug_log(self, 'FittenCodeInlineAccepted autocmds = {}', autocmds)
191194
return true
192195
end
193196

0 commit comments

Comments
 (0)