aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/options_doc.lua
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-09-10 10:49:54 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-09-10 11:09:32 -0700
commitdd5b2f2f7ca01c2f28239cbbc7f97e6f9024cd94 (patch)
treed9463fbaa332ce718c72e84dad2b485c70f38649 /scripts/options_doc.lua
parent6b3dc33b0d3078d3c215c51f337f1702c57bfb8b (diff)
feat: format_on_save and format_after_save can be functions
Diffstat (limited to 'scripts/options_doc.lua')
-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 1a6921c..5dab627 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -18,6 +18,11 @@ require("conform").setup({
lsp_fallback = true,
timeout_ms = 500,
},
+ -- If this is set, Conform will run the formatter asynchronously after save.
+ -- It will pass the table to conform.format().
+ format_after_save = {
+ lsp_fallback = true,
+ },
-- Set the log level. Use `:ConformInfo` to see the location of the log file.
log_level = vim.log.levels.ERROR,
-- Conform will notify you when a formatter errors