aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-09-07 20:28:07 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-09-07 20:28:28 -0700
commitbd1aa02ef191410b2ea0b3ef5caabe06592d9c51 (patch)
tree6ec387cfa0c9b68678f4cfd9c74d633bfef29a71 /scripts
parent4c67568df62e905c6d4194a602a65490f78ffc35 (diff)
refactor!: remove run_all_formatters config option
run_all_formatters is now the default. To only run the first formatter (the previous behavior), see the next commit
Diffstat (limited to 'scripts')
-rw-r--r--scripts/options_doc.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/scripts/options_doc.lua b/scripts/options_doc.lua
index a501e38..a796501 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -2,16 +2,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().