aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/options_doc.lua
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-09-13 23:52:55 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-09-14 07:54:22 -0700
commit808c7e045d50dcb2ad512ea7fa94baf411654a95 (patch)
tree4f8bd202ed41fb7f96b850f8800dac75f1e542f1 /scripts/options_doc.lua
parente9cc79fd723afccb8c0c16342b913fa6e96879b0 (diff)
doc: add some recipes to the documentation
Diffstat (limited to 'scripts/options_doc.lua')
-rw-r--r--scripts/options_doc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/options_doc.lua b/scripts/options_doc.lua
index 5dab627..9073369 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -13,6 +13,7 @@ require("conform").setup({
},
-- 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.
format_on_save = {
-- I recommend these options. See :help conform.format for details.
lsp_fallback = true,
@@ -20,6 +21,7 @@ require("conform").setup({
},
-- If this is set, Conform will run the formatter asynchronously after save.
-- It will pass the table to conform.format().
+ -- This can also be a function that returns the table.
format_after_save = {
lsp_fallback = true,
},