[LANG] c/cpp: formatter - run clang-format from CWD of file. (#967)

This commit is contained in:
James Walmsley 2021-07-15 12:37:05 +01:00 committed by GitHub
parent b309c49981
commit ebcb38d85b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@ M.format = function()
exe = O.lang.clang.formatter.exe,
args = O.lang.clang.formatter.args,
stdin = not (O.lang.clang.formatter.stdin ~= nil),
cwd = vim.fn.expand "%:h:p",
}
end,
}