Skip to content

Commit 2fc8c4f

Browse files
committed
format + both modes of jobstart have been tested.
1 parent 526d43b commit 2fc8c4f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lua/markmap/utils.lua

+13-13
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local is_windows = uv.os_uname().sysname == "Windows_NT"
99
---On unix, run it as string so it spawn a shell,
1010
---so ENV is available, which is mandatory on termux.
1111
---@param cmd string command to run.
12-
---@param arguments table arguments to pass.
12+
---@param arguments table arguments to pass to the cmd.
1313
---@return number job pid of the job, so we can stop it later.
1414
M.jobstart = function(cmd, arguments)
1515
if is_windows then
@@ -19,19 +19,19 @@ M.jobstart = function(cmd, arguments)
1919
end
2020
end
2121

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
2727

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)
3532
end
33+
if config.hide_toolbar then table.insert(arguments, config.hide_toolbar) end
34+
return arguments
35+
end
3636

3737
return M

0 commit comments

Comments
 (0)