diff options
author | Mads Hougesen <madshougesen@gmail.com> | 2024-06-25 02:31:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 17:31:20 -0700 |
commit | b5ae342ab28919a8083b589a587b030ad859592e (patch) | |
tree | 7026e52e240ef75f34deb088521ce658b7d715bf /lua/conform/formatters/docformatter.lua | |
parent | 4baa2f9db2bf9e772c46efb0c3fa0daad5e8abfd (diff) |
feat: support docformatter (#472)
Diffstat (limited to 'lua/conform/formatters/docformatter.lua')
-rw-r--r-- | lua/conform/formatters/docformatter.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/docformatter.lua b/lua/conform/formatters/docformatter.lua new file mode 100644 index 0000000..fa2edb0 --- /dev/null +++ b/lua/conform/formatters/docformatter.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://pypi.org/project/docformatter/", + description = "docformatter automatically formats docstrings to follow a subset of the PEP 257 conventions.", + }, + command = "docformatter", + args = { "--in-place", "$FILENAME" }, + stdin = false, +} |