Skip to content

Commit

Permalink
format: All function calls now use () to avoid more regressions like e…
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed Mar 26, 2024
1 parent 97fe199 commit 9f98f29
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/markmap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ M.setup = function(opts)
cmd("MarkmapOpen", function()
config = vim.g.markmap_config
arguments = utils.reset_arguments()
table.insert(arguments, vim.fn.expand "%:p") -- current buffer path
table.insert(arguments, vim.fn.expand("%:p")) -- current buffer path
if job ~= nil then jobstop(job) end
job = jobstart(config.markmap_cmd, arguments)
end, { desc = "Show a mental map of the current file" })

cmd("MarkmapSave", function()
config = vim.g.markmap_config
arguments = utils.reset_arguments()
table.insert(arguments, "--no-open") -- specific to this command
table.insert(arguments, vim.fn.expand "%:p") -- current buffer path
if job ~= nil then jobstop(job) end -- kill jobs
table.insert(arguments, "--no-open") -- specific to this command
table.insert(arguments, vim.fn.expand("%:p")) -- current buffer path
if job ~= nil then jobstop(job) end -- kill jobs
job = jobstart(config.markmap_cmd, arguments)
end, { desc = "Save the HTML file without opening the mindmap" })

cmd("MarkmapWatch", function()
config = vim.g.markmap_config
arguments = utils.reset_arguments()
table.insert(arguments, "--watch") -- spetific to this command
table.insert(arguments, vim.fn.expand "%:p") -- current buffer path
if job ~= nil then jobstop(job) end -- kill jobs
table.insert(arguments, "--watch") -- spetific to this command
table.insert(arguments, vim.fn.expand("%:p")) -- current buffer path
if job ~= nil then jobstop(job) end -- kill jobs
job = jobstart(config.markmap_cmd, arguments)
end, { desc = "Show a mental map of the current file and watch for changes" })

Expand Down

0 comments on commit 9f98f29

Please sign in to comment.