summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/auto_optional.lua12
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,
+}