blob: 63bff837e6d200e2c590ea15d123bea413e554f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/google/yapf",
description = "Yet Another Python Formatter.",
},
command = "yapf",
args = { "--quiet" },
range_args = function(self, ctx)
return { "--quiet", "--lines", string.format("%d-%d", ctx.range.start[1], ctx.range["end"][1]) }
end,
}
|