From 954d8746e5cf1266d93cf4210c00c1506f20423b Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 16 Mar 2026 18:11:45 +0100 Subject: [PATCH] fix(biome): use biome-check in conform that also fixes linting issues and sorts imports --- lua/lazyvim/plugins/extras/formatting/biome.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/formatting/biome.lua b/lua/lazyvim/plugins/extras/formatting/biome.lua index 91e488ca..3d632978 100644 --- a/lua/lazyvim/plugins/extras/formatting/biome.lua +++ b/lua/lazyvim/plugins/extras/formatting/biome.lua @@ -1,3 +1,5 @@ +---@module "conform" + ---@diagnostic disable: inject-field if lazyvim_docs then -- Enable this option to avoid conflicts with Prettier. @@ -31,16 +33,16 @@ return { { "stevearc/conform.nvim", optional = true, - ---@param opts ConformOpts + ---@param opts conform.setupOpts opts = function(_, opts) opts.formatters_by_ft = opts.formatters_by_ft or {} for _, ft in ipairs(supported) do opts.formatters_by_ft[ft] = opts.formatters_by_ft[ft] or {} - table.insert(opts.formatters_by_ft[ft], "biome") + table.insert(opts.formatters_by_ft[ft], "biome-check") end opts.formatters = opts.formatters or {} - opts.formatters.biome = { + opts.formatters["biome-check"] = { require_cwd = true, } end,