be explicit about stdin for formatters (#987)

This commit is contained in:
Abouzar Parvan 2021-07-17 11:02:17 +04:30 committed by GitHub
parent ad373002d8
commit 3f4cf5f01d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 21 additions and 13 deletions

View file

@ -13,6 +13,7 @@ M.config = function()
formatter = {
exe = "clang-format",
args = {},
stdin = true,
},
linters = {
"cppcheck",
@ -33,7 +34,7 @@ M.format = function()
return {
exe = O.lang.clang.formatter.exe,
args = O.lang.clang.formatter.args,
stdin = not (O.lang.clang.formatter.stdin ~= nil),
stdin = O.lang.clang.formatter.stdin,
cwd = vim.fn.expand "%:h:p",
}
end,