diff options
author | Filip Godlewski <54432731+filipgodlewski@users.noreply.github.com> | 2023-11-12 03:17:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 18:17:12 -0800 |
commit | 9156364c23cff19734a0055377321c22b1484c0f (patch) | |
tree | e7518a85dd409dda30ffd7efe8508292b6972bc0 /lua/conform/formatters/auto_optional.lua | |
parent | 0963118e60e0895e2e4842aeffc67cdf9e2bcd10 (diff) |
feat: add `auto-optional` (#196)
* feat: add `auto-optional`
* doc: add period at end of description
---------
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
Diffstat (limited to 'lua/conform/formatters/auto_optional.lua')
-rw-r--r-- | lua/conform/formatters/auto_optional.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/conform/formatters/auto_optional.lua b/lua/conform/formatters/auto_optional.lua new file mode 100644 index 0000000..b0738dc --- /dev/null +++ b/lua/conform/formatters/auto_optional.lua @@ -0,0 +1,12 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://auto-optional.daanluttik.nl/", + description = "Adds the Optional type-hint to arguments where the default value is None.", + }, + command = "auto-optional", + args = { + "$FILENAME", + }, + stdin = false, +} |