Skip to content

Commit 034d863

Browse files
committed
refactor(conform): drop the prettier temp-copy override
the --write-on-temp-copy shape existed because the bun node-shim broke stdin; mise ships real node now and stdin works again, so conform's built-in prettier definition (stdin + --stdin-filepath) takes over — no more .conform.$RANDOM.* copy written per format.
1 parent c697c78 commit 034d863

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lua/modules/configs/completion/conform.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,6 @@ return function()
147147
args = { "fix", "--stdin" },
148148
stdin = true,
149149
},
150-
-- prettier: the --write-on-temp-copy shape dates from the bun
151-
-- node-shim era (stdin was broken); mise ships real node now, so
152-
-- stdin likely works again — kept pending re-evaluation. `stdin =
153-
-- false` points $FILENAME at a `.conform.$RANDOM.*` copy; the real
154-
-- file is never touched.
155-
prettier = {
156-
command = "prettier",
157-
args = { "--write", "$FILENAME" },
158-
stdin = false,
159-
},
160150
},
161151
format_on_save = format_on_save_enabled and function(bufnr)
162152
if not autoformat_allowed(bufnr) then

0 commit comments

Comments
 (0)