From 02f1a39ebd4c709973d7ca6c32321fbc566a82d6 Mon Sep 17 00:00:00 2001 From: TD-Sky Date: Sat, 5 Apr 2025 12:36:56 +0800 Subject: [PATCH 1/2] fix(biome): format for files like `[id].ts` --- lua/guard-collection/formatter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/guard-collection/formatter.lua b/lua/guard-collection/formatter.lua index 6c3e545..7e0fe76 100644 --- a/lua/guard-collection/formatter.lua +++ b/lua/guard-collection/formatter.lua @@ -282,9 +282,9 @@ M.zigfmt = { M.biome = { cmd = 'biome', - args = { 'format', '--write' }, + args = { 'format', '--write', '--stdin-file-path' }, fname = true, - stdin = false, + stdin = true, } M.xmllint = { From 229f0dae4b816a61a8154372e19f9aafaf687588 Mon Sep 17 00:00:00 2001 From: TD-Sky Date: Sat, 5 Apr 2025 12:59:12 +0800 Subject: [PATCH 2/2] `--write` is not neccessary --- lua/guard-collection/formatter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/guard-collection/formatter.lua b/lua/guard-collection/formatter.lua index 7e0fe76..15dd927 100644 --- a/lua/guard-collection/formatter.lua +++ b/lua/guard-collection/formatter.lua @@ -282,7 +282,7 @@ M.zigfmt = { M.biome = { cmd = 'biome', - args = { 'format', '--write', '--stdin-file-path' }, + args = { 'format', '--stdin-file-path' }, fname = true, stdin = true, }