blob: fc3cfeb277e48c56eef26afcc936b9b60f3a91bc (
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(ctx)
return { "--quiet", "--lines", string.format("%d-%d", ctx.range.start[1], ctx.range["end"][1]) }
end,
}
|