diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2023-09-26 09:34:49 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2023-09-26 10:20:14 -0700 |
commit | aada09c9cfea38187966ce47f34b9008e1104d21 (patch) | |
tree | cfc5cd87ad460730eb9033df6926bdb98159c82d /doc/recipes.md | |
parent | e1f75de3aabe022bd0ee02a04a7dc2db6e403846 (diff) |
feat: another utility for extending formatter arguments
Diffstat (limited to 'doc/recipes.md')
-rw-r--r-- | doc/recipes.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/recipes.md b/doc/recipes.md index 5aeaf47..66bc662 100644 --- a/doc/recipes.md +++ b/doc/recipes.md @@ -191,4 +191,7 @@ local deno_fmt = require("conform.formatters.deno_fmt") require("conform").formatters.deno_fmt = vim.tbl_deep_extend('force', deno_fmt, { args = util.extend_args(deno_fmt.args, { "--use-tabs" }, { append = true }) }) + +-- There is also a utility to modify a formatter in-place +util.add_formatter_args(require("conform.formatters.prettier"), { "--tab", "--indent", "2" }) ``` |