aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSteven Arcangeli <506791+stevearc@users.noreply.github.com>2024-03-15 08:56:03 -0700
committerGitHub <noreply@github.com>2024-03-15 08:56:03 -0700
commitb05962622d3eebeefe6b1a90deb9eb86947e0349 (patch)
tree1da4f07fcc096c0071e08f3e5dd90e7b2c6394b4 /README.md
parenta605ce4b2db397c84ae6fa8bcfc85f00b985bc73 (diff)
feat: add formatter config option to change name of temporary file (#332)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4afc81a..9dd4b06 100644
--- a/README.md
+++ b/README.md
@@ -464,6 +464,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"