From 3c9ec34f963fc30cc78c1b02039b8fb9f3a12ba7 Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Thu, 17 Apr 2025 16:39:03 +0200 Subject: [PATCH] chore(conform): replace prettierd with biome --- lua/custom/plugins/conform.lua | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lua/custom/plugins/conform.lua b/lua/custom/plugins/conform.lua index 513adcf..fcea89c 100644 --- a/lua/custom/plugins/conform.lua +++ b/lua/custom/plugins/conform.lua @@ -3,13 +3,13 @@ return { config = function() require("conform").setup({ formatters_by_ft = { - html = { "prettierd" }, - yaml = { "prettierd" }, - javascript = { "prettierd" }, - javascriptreact = { "prettierd" }, - markdown = { "prettierd" }, - typescript = { "prettierd" }, - typescriptreact = { "prettierd" }, + html = { "biome" }, + yaml = { "biome" }, + javascript = { "biome" }, + javascriptreact = { "biome" }, + markdown = { "biome" }, + typescript = { "biome" }, + typescriptreact = { "biome" }, ["*"] = { "trim_whitespace" }, }, format_on_save = { @@ -17,11 +17,9 @@ return { lsp_fallback = true, }, formatters = { - prettierd = { + biome = { condition = function() - return vim.loop.fs_realpath(".prettierrc.js") ~= nil or - vim.loop.fs_realpath(".prettierrc") ~= nil - end, + return vim.loop.fs_realpath("biome.json") ~= nil end, }, }, })