Skip to content

Commit

Permalink
fix(core.mode): type errors with events
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jan 6, 2024
1 parent 1ab6236 commit fb2c561
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/neorg/modules/core/mode/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ module.public = {

-- Broadcast the mode_created event
modules.broadcast_event(
modules.create_event(
assert(modules.create_event(
module,
"core.mode.events.mode_created",
{ current = module.config.public.current_mode, new = mode_name }
)
))
)

-- Define the autocompletion tables and make them include the current mode
Expand Down Expand Up @@ -105,11 +105,11 @@ module.public = {

-- Broadcast the mode_set event to all subscribed modules
modules.broadcast_event(
modules.create_event(
assert(modules.create_event(
module,
"core.mode.events.mode_set",
{ current = module.config.public.previous_mode, new = mode_name }
)
))
)
end,

Expand Down

0 comments on commit fb2c561

Please sign in to comment.