Skip to content
This repository was archived by the owner on Dec 7, 2025. It is now read-only.

Commit 8595e20

Browse files
committed
update
1 parent d4ec704 commit 8595e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/strive/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,18 +695,18 @@ function Plugin:on(events)
695695
once = true,
696696
callback = function(args)
697697
-- Don't re-emit the event if we've already loaded the plugin
698-
if not self.loaded and self:load() and args.event == 'FileType' then
698+
if not self.loaded and self:load() then
699699
-- We need to re-emit the event, but carefully to avoid nesting too deep
700700
-- Instead of exec_autocmds, trigger the event using a different mechanism
701701
local event_data = args.data and vim.deepcopy(args.data) or {}
702702

703703
-- Schedule the event emission to avoid nesting too deep
704-
vim.schedule(function()
704+
-- vim.schedule(function()
705705
api.nvim_exec_autocmds(event, {
706706
modeline = false,
707707
data = event_data,
708708
})
709-
end)
709+
-- end)
710710
end
711711
end,
712712
})

0 commit comments

Comments
 (0)