diff options
author | frrenzy <90396571+frrenzy@users.noreply.github.com> | 2023-10-15 06:33:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 20:33:01 -0700 |
commit | a97ddfff2d701245ad49daf24ef436a50ee72a50 (patch) | |
tree | 9aab165c2124ab5e4ea56d98cd1241c8ff1fc424 /lua/conform | |
parent | b36221f642a66e0813c061aa8a10cf1b533c8a0f (diff) |
feat: add blue formatter (#142)
* Add blue formatter
* change description of Blue formatter
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", + }), +} |