print cmd output in debug

This commit is contained in:
marshmallow 2023-06-26 00:27:05 +10:00
parent 406dd086a4
commit b8af03f5f0
No known key found for this signature in database
GPG key ID: 767B8880F5AAEB9C

View file

@ -253,7 +253,7 @@ vim.api.nvim_create_user_command("OrgExecute", function(el)
local output = vim.fn.system(cmd) local output = vim.fn.system(cmd)
vim.print(output) vim.notify(output, vim.log.levels.DEBUG)
if not vim.bo[bufnr].modified then if not vim.bo[bufnr].modified then
vim.cmd(bufnr .. "bufdo edit") vim.cmd(bufnr .. "bufdo edit")
@ -355,7 +355,7 @@ vim.api.nvim_create_user_command("OrgTangle", function(el)
local output = vim.fn.system(cmd) local output = vim.fn.system(cmd)
vim.print(output) vim.notify(output, vim.log.levels.DEBUG)
end, { end, {
range = "%", range = "%",
bang = true, bang = true,