aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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 4b1687e..96c0f2b 100644
--- a/scripts/options_doc.lua
+++ b/scripts/options_doc.lua
@@ -59,6 +59,8 @@ require("conform").setup({
cwd = require("conform.util").root_file({ ".editorconfig", "package.json" }),
-- When cwd is not found, don't run the formatter (default false)
require_cwd = true,
+ -- When stdin=false, use this template to generate the temporary file that gets formatted
+ tmpfile_format = ".conform.$RANDOM.$FILENAME",
-- When returns false, the formatter will not be used
condition = function(ctx)
return vim.fs.basename(ctx.filename) ~= "README.md"