Skip to content

Commit 9f98f29

Browse files
committed
format: All function calls now use () to avoid more regressions like e88f796
1 parent 97fe199 commit 9f98f29

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lua/markmap/init.lua

+7-7
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)