@@ -19,26 +19,26 @@ M.setup = function(opts)
19
19
cmd (" MarkmapOpen" , function ()
20
20
config = vim .g .markmap_config
21
21
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
23
23
if job ~= nil then jobstop (job ) end
24
24
job = jobstart (config .markmap_cmd , arguments )
25
25
end , { desc = " Show a mental map of the current file" })
26
26
27
27
cmd (" MarkmapSave" , function ()
28
28
config = vim .g .markmap_config
29
29
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
33
33
job = jobstart (config .markmap_cmd , arguments )
34
34
end , { desc = " Save the HTML file without opening the mindmap" })
35
35
36
36
cmd (" MarkmapWatch" , function ()
37
37
config = vim .g .markmap_config
38
38
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
42
42
job = jobstart (config .markmap_cmd , arguments )
43
43
end , { desc = " Show a mental map of the current file and watch for changes" })
44
44
0 commit comments