File tree 1 file changed +4
-1
lines changed
lua/neorg/modules/core/neorgcmd
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ module.load = function()
97
97
vim .api .nvim_create_user_command (" Neorg" , module .private .command_callback , {
98
98
nargs = " *" ,
99
99
complete = module .private .generate_completions ,
100
+ range = 2 ,
100
101
})
101
102
102
103
-- Loop through all the command modules we want to load and load them
@@ -295,12 +296,14 @@ module.private = {
295
296
module .events .defined [ref .name ] = modules .define_event (module , ref .name )
296
297
end
297
298
299
+ local content = vim .list_slice (args , argument_index + 1 )
300
+ content [" data" ] = data
298
301
modules .broadcast_event (
299
302
assert (
300
303
modules .create_event (
301
304
module ,
302
305
table.concat ({ " core.neorgcmd.events." , ref .name }),
303
- vim . list_slice ( args , argument_index + 1 )
306
+ content
304
307
)
305
308
)
306
309
)
You can’t perform that action at this time.
0 commit comments