fix(format): use silent write on non-stdin call
This commit is contained in:
+3
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user