Skip to content

Commit

Permalink
fix(core.neorgcmd): 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 0016fdd commit 1ab6236
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neorg/modules/core/neorgcmd/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.examples = {
end,
}

module.load = function() ---@diagnostic disable-line -- TODO: type error workaround <pysan3> Duplicate field `load` (L26)
module.load = function()
-- Define the :Neorg command with autocompletion taking any number of arguments (-nargs=*)
-- If the user passes no arguments or too few, we'll query them for the remainder using select_next_cmd_arg.
vim.api.nvim_create_user_command("Neorg", module.private.command_callback, {
Expand Down Expand Up @@ -284,11 +284,11 @@ module.private = {
end

modules.broadcast_event(
modules.create_event(
assert(modules.create_event(
module,
table.concat({ "core.neorgcmd.events.", ref.name }),
vim.list_slice(args, argument_index + 1)
)
))
)
end,

Expand Down

0 comments on commit 1ab6236

Please sign in to comment.