fix(format): use silent write on non-stdin call

This commit is contained in:
2024-08-12 20:26:58 +02:00
parent c970e6fa6e
commit 40b39f5283
+3 -1
View File
@@ -211,7 +211,9 @@ function M.format(opts)
end end
if not opts.stdin then if not opts.stdin then
vim.api.nvim_buf_call(0, vim.cmd.write) vim.api.nvim_buf_call(0, function()
vim.cmd("silent write")
end)
end end
for i, arg in ipairs(opts.cmd) do for i, arg in ipairs(opts.cmd) do