diff options
Diffstat (limited to 'lua/conform')
-rw-r--r-- | lua/conform/formatters/blue.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/conform/formatters/blue.lua b/lua/conform/formatters/blue.lua new file mode 100644 index 0000000..6869339 --- /dev/null +++ b/lua/conform/formatters/blue.lua @@ -0,0 +1,21 @@ +local util = require("conform.util") +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/grantjenks/blue", + description = "The slightly less uncompromising Python code formatter.", + }, + command = "blue", + args = { + "--stdin-filename", + "$FILENAME", + "--quiet", + "-", + }, + cwd = util.root_file({ + "setup.cfg", + "pyproject.toml", + "tox.ini", + ".blue", + }), +} |