summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2024-07-13 12:41:18 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2024-07-19 08:41:31 -0700
commitd7de350233e8f686b9affac9c1e106a6602f5fe8 (patch)
treefc666c203904f617ff91a398db682f380b729ce5 /scripts
parentae213f5169d5d0c6abbe76e1438d932772fc1657 (diff)
feat: allow customizing format() defaults
Diffstat (limited to 'scripts')
-rw-r--r--scripts/options_doc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/options_doc.lua b/scripts/options_doc.lua
index 193b462..d47c832 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -20,6 +20,11 @@ require("conform").setup({
-- have other formatters configured.
["_"] = { "trim_whitespace" },
},
+ -- Set this to change the default values when calling conform.format()
+ -- This will also affect the default values for format_on_save/format_after_save
+ default_format_opts = {
+ lsp_format = "fallback",
+ },
-- If this is set, Conform will run the formatter on save.
-- It will pass the table to conform.format().
-- This can also be a function that returns the table.