aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--doc/conform.txt4
-rw-r--r--scripts/options_doc.lua4
3 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 041fcc5..aa1511e 100644
--- a/README.md
+++ b/README.md
@@ -515,9 +515,13 @@ require("conform").setup({
},
-- Set to false to disable merging the config with the base definition
inherit = true,
+ -- When inherit = true, add these additional arguments to the beginning of the command.
-- When inherit = true, add these additional arguments to the command.
-- This can also be a function, like args
prepend_args = { "--use-tabs" },
+ -- When inherit = true, add these additional arguments to the end of the command.
+ -- This can also be a function, like args
+ append_args = { "--trailing-comma" },
},
-- These can also be a function that returns the formatter
other_formatter = function(bufnr)
diff --git a/doc/conform.txt b/doc/conform.txt
index 03d97b4..9e660be 100644
--- a/doc/conform.txt
+++ b/doc/conform.txt
@@ -86,9 +86,13 @@ OPTIONS *conform-option
},
-- Set to false to disable merging the config with the base definition
inherit = true,
+ -- When inherit = true, add these additional arguments to the beginning of the command.
-- When inherit = true, add these additional arguments to the command.
-- This can also be a function, like args
prepend_args = { "--use-tabs" },
+ -- When inherit = true, add these additional arguments to the end of the command.
+ -- This can also be a function, like args
+ append_args = { "--trailing-comma" },
},
-- These can also be a function that returns the formatter
other_formatter = function(bufnr)
diff --git a/scripts/options_doc.lua b/scripts/options_doc.lua
index 238cd33..e9ba668 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -73,9 +73,13 @@ require("conform").setup({
},
-- Set to false to disable merging the config with the base definition
inherit = true,
+ -- When inherit = true, add these additional arguments to the beginning of the command.
-- When inherit = true, add these additional arguments to the command.
-- This can also be a function, like args
prepend_args = { "--use-tabs" },
+ -- When inherit = true, add these additional arguments to the end of the command.
+ -- This can also be a function, like args
+ append_args = { "--trailing-comma" },
},
-- These can also be a function that returns the formatter
other_formatter = function(bufnr)