Skip to content

Commit 31f20ec

Browse files
committed
docs(conform): de-rot the prettier override and drop restating comments
The prettier --write-on-temp-copy rationale dated from the bun node-shim era; record that mise ships real node now (kept pending re-evaluation). Drop the two comments restating the format_on_save code and the null-ls migration attribution.
1 parent fe9d466 commit 31f20ec

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lua/modules/configs/completion/conform.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,22 +147,22 @@ return function()
147147
args = { "fix", "--stdin" },
148148
stdin = true,
149149
},
150-
-- prettier: stdin is broken under bun's node shim, so use --write on
151-
-- conform's temp copy (`stdin = false` points $FILENAME at a
152-
-- `.conform.$RANDOM.*` copy; the real file is never touched).
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.
153155
prettier = {
154156
command = "prettier",
155157
args = { "--write", "$FILENAME" },
156158
stdin = false,
157159
},
158160
},
159161
format_on_save = format_on_save_enabled and function(bufnr)
160-
-- Disabled filetypes, disabled workspaces, and the global/buffer toggles
161162
if not autoformat_allowed(bufnr) then
162163
return
163164
end
164165

165-
-- Format only modified lines if enabled
166166
if format_modifications_only then
167167
if format_modifications(bufnr) then
168168
return
@@ -284,7 +284,7 @@ return function()
284284
end
285285
end, { nargs = 1, complete = "filetype" })
286286

287-
-- Auto stop shell LSPs for .env files (migrated from null-ls config).
287+
-- Auto stop shell LSPs for .env files.
288288
-- Both bashls and shuck attach to .env's `sh` filetype and only add noise there.
289289
vim.api.nvim_create_autocmd("LspAttach", {
290290
callback = function(event)

0 commit comments

Comments
 (0)