aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 4 insertions, 18 deletions
diff --git a/README.md b/README.md
index 8331dae..8d6cd45 100644
--- a/README.md
+++ b/README.md
@@ -110,14 +110,8 @@ At a minimum, you will need to set up some formatters by filetype
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
- -- Conform will use the first available formatter in the list
- javascript = { "prettier_d", "prettier" },
- -- Formatters can also be specified with additional options
- python = {
- formatters = { "isort", "black" },
- -- Run formatters one after another instead of stopping at the first success
- run_all_formatters = true,
- },
+ -- Conform will run multiple formatters sequentially
+ python = { "isort", "black" },
},
})
```
@@ -214,16 +208,8 @@ require("conform").setup({
-- Map of filetype to formatters
formatters_by_ft = {
lua = { "stylua" },
- -- Conform will use the first available formatter in the list
- javascript = { "prettierd", "prettier" },
- -- Formatters can also be specified with additional options
- python = {
- formatters = { "isort", "black" },
- -- Run formatters one after another instead of stopping at the first success
- run_all_formatters = true,
- -- Don't run these formatters as part of the format_on_save autocmd (see below)
- format_on_save = false,
- },
+ -- Conform will run multiple formatters sequentially
+ python = { "isort", "black" },
},
-- If this is set, Conform will run the formatter on save.
-- It will pass the table to conform.format().