@@ -64,15 +64,15 @@ M.setup = function(opts)
6464 reset_arguments ()
6565 table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
6666 if job ~= nil then jobstop (job ) end
67- job = jobstart { run_markmap , unpack (arguments ) }
67+ job = jobstart ( run_markmap .. " " .. table.concat (arguments , " " ))
6868 end , { desc = " Show a mental map of the current file" })
6969
7070 cmd (" MarkmapSave" , function ()
7171 reset_arguments ()
7272 table.insert (arguments , " --no-open" ) -- specific to this command
7373 table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
7474 if job ~= nil then jobstop (job ) end -- kill jobs
75- job = jobstart { run_markmap , unpack (arguments ) }
75+ job = jobstart ( run_markmap .. " " .. table.concat (arguments , " " ))
7676 end , { desc = " Save the HTML file without opening the mindmap" })
7777
7878 cmd (
@@ -82,7 +82,7 @@ M.setup = function(opts)
8282 table.insert (arguments , " --watch" ) -- spetific to this command
8383 table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
8484 if job ~= nil then jobstop (job ) end -- kill jobs
85- job = jobstart { run_markmap , unpack (arguments ) }
85+ job = jobstart ( run_markmap .. " " .. table.concat (arguments , " " ))
8686 end ,
8787 { desc = " Show a mental map of the current file and watch for changes" }
8888 )
0 commit comments