aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/options_doc.lua
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-09-15 21:02:54 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-09-15 21:03:02 -0700
commita589750635fcc5bb52c7e572cd853446c2c63855 (patch)
tree1342f0dbf7583a20bcff7f2a8c331a280a69bcc2 /scripts/options_doc.lua
parent705d36300138a6dc5eb902b336d8358bf500bebd (diff)
feat: '_' filetype to define fallback formatters
Diffstat (limited to 'scripts/options_doc.lua')
-rw-r--r--scripts/options_doc.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/options_doc.lua b/scripts/options_doc.lua
index af7b10c..bce6908 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -6,10 +6,14 @@ require("conform").setup({
python = { "isort", "black" },
-- Use a sub-list to run only the first available formatter
javascript = { { "prettierd", "prettier" } },
- -- Use the "*" filetype to run formatters on all files.
+ -- Use the "*" filetype to run formatters on all filetypes.
-- Note that if you use this, you may want to set lsp_fallback = "always"
-- (see :help conform.format)
- ["*"] = { "trim_whitespace" },
+ ["*"] = { "codespell" },
+ -- Use the "_" filetype to run formatters on all filetypes
+ -- that don't have other formatters configured. Again, you may want to
+ -- set lsp_fallback = "always" when using this value.
+ ["_"] = { "trim_whitespace" },
},
-- If this is set, Conform will run the formatter on save.
-- It will pass the table to conform.format().