@@ -19,26 +19,26 @@ M.setup = function(opts)
1919 cmd (" MarkmapOpen" , function ()
2020 config = vim .g .markmap_config
2121 arguments = utils .reset_arguments ()
22- table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
22+ table.insert (arguments , vim .fn .expand ( " %:p" ) ) -- current buffer path
2323 if job ~= nil then jobstop (job ) end
2424 job = jobstart (config .markmap_cmd , arguments )
2525 end , { desc = " Show a mental map of the current file" })
2626
2727 cmd (" MarkmapSave" , function ()
2828 config = vim .g .markmap_config
2929 arguments = utils .reset_arguments ()
30- table.insert (arguments , " --no-open" ) -- specific to this command
31- table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
32- if job ~= nil then jobstop (job ) end -- kill jobs
30+ table.insert (arguments , " --no-open" ) -- specific to this command
31+ table.insert (arguments , vim .fn .expand ( " %:p" ) ) -- current buffer path
32+ if job ~= nil then jobstop (job ) end -- kill jobs
3333 job = jobstart (config .markmap_cmd , arguments )
3434 end , { desc = " Save the HTML file without opening the mindmap" })
3535
3636 cmd (" MarkmapWatch" , function ()
3737 config = vim .g .markmap_config
3838 arguments = utils .reset_arguments ()
39- table.insert (arguments , " --watch" ) -- spetific to this command
40- table.insert (arguments , vim .fn .expand " %:p" ) -- current buffer path
41- if job ~= nil then jobstop (job ) end -- kill jobs
39+ table.insert (arguments , " --watch" ) -- spetific to this command
40+ table.insert (arguments , vim .fn .expand ( " %:p" ) ) -- current buffer path
41+ if job ~= nil then jobstop (job ) end -- kill jobs
4242 job = jobstart (config .markmap_cmd , arguments )
4343 end , { desc = " Show a mental map of the current file and watch for changes" })
4444
0 commit comments