diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | doc/conform.txt | 4 | ||||
-rw-r--r-- | scripts/options_doc.lua | 4 |
3 files changed, 12 insertions, 0 deletions
@@ -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) |