@@ -9,7 +9,7 @@ local is_windows = uv.os_uname().sysname == "Windows_NT"
9
9
--- On unix, run it as string so it spawn a shell,
10
10
--- so ENV is available, which is mandatory on termux.
11
11
--- @param cmd string command to run.
12
- --- @param arguments table arguments to pass.
12
+ --- @param arguments table arguments to pass to the cmd .
13
13
--- @return number job pid of the job , so we can stop it later.
14
14
M .jobstart = function (cmd , arguments )
15
15
if is_windows then
@@ -19,19 +19,19 @@ M.jobstart = function(cmd, arguments)
19
19
end
20
20
end
21
21
22
- --- We re-set the arguments we pass to markmap every time we run it to ensure
23
- --- they are always clean and correct, as every command get different ones.
24
- --- @return table arguments
25
- M .reset_arguments = function ()
26
- local config = vim .g .markmap_config
22
+ --- We re-set the arguments we pass to markmap every time we run it to ensure
23
+ --- they are always clean and correct, as every command get different ones.
24
+ --- @return table arguments
25
+ M .reset_arguments = function ()
26
+ local config = vim .g .markmap_config
27
27
28
- local arguments = {}
29
- if config .html_output ~= " " then -- if html_output is "", don't pass the parameter
30
- table.insert (arguments , " -o" )
31
- table.insert (arguments , config .html_output )
32
- end
33
- if config .hide_toolbar then table.insert (arguments , config .hide_toolbar ) end
34
- return arguments
28
+ local arguments = {}
29
+ if config .html_output ~= " " then -- if html_output is "", don't pass the parameter
30
+ table.insert (arguments , " -o" )
31
+ table.insert (arguments , config .html_output )
35
32
end
33
+ if config .hide_toolbar then table.insert (arguments , config .hide_toolbar ) end
34
+ return arguments
35
+ end
36
36
37
37
return M
0 commit comments