@@ -64,15 +64,15 @@ M.setup = function(opts)
64
64
reset_arguments ()
65
65
table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
66
66
if job ~= nil then jobstop (job ) end
67
- job = jobstart { run_markmap , unpack (arguments ) }
67
+ job = jobstart ( run_markmap .. " " .. table.concat (arguments , " " ))
68
68
end , { desc = " Show a mental map of the current file" })
69
69
70
70
cmd (" MarkmapSave" , function ()
71
71
reset_arguments ()
72
72
table.insert (arguments , " --no-open" ) -- specific to this command
73
73
table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
74
74
if job ~= nil then jobstop (job ) end -- kill jobs
75
- job = jobstart { run_markmap , unpack (arguments ) }
75
+ job = jobstart ( run_markmap .. " " .. table.concat (arguments , " " ))
76
76
end , { desc = " Save the HTML file without opening the mindmap" })
77
77
78
78
cmd (
@@ -82,7 +82,7 @@ M.setup = function(opts)
82
82
table.insert (arguments , " --watch" ) -- spetific to this command
83
83
table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
84
84
if job ~= nil then jobstop (job ) end -- kill jobs
85
- job = jobstart { run_markmap , unpack (arguments ) }
85
+ job = jobstart ( run_markmap .. " " .. table.concat (arguments , " " ))
86
86
end ,
87
87
{ desc = " Show a mental map of the current file and watch for changes" }
88
88
)
0 commit comments