diff --git a/.config/nvim/lua/plugins/extras/linting/biome.lua b/.config/nvim/lua/plugins/extras/linting/biome.lua index 6c263478..aa0d82f5 100644 --- a/.config/nvim/lua/plugins/extras/linting/biome.lua +++ b/.config/nvim/lua/plugins/extras/linting/biome.lua @@ -20,8 +20,6 @@ return { { "stevearc/conform.nvim", opts = function(_, opts) - --- Extend the conform plugin config and add given formatters - ---@param tbl table Table of filetype to formatters mappings local function add_formatters(tbl) for ft, formatters in pairs(tbl) do if opts.formatters_by_ft[ft] == nil then @@ -42,6 +40,7 @@ return { }) opts.formatters = { + cwd = require("conform.util").root_file({ "biome.json" }), biome = { condition = function(self, ctx) return vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1] diff --git a/.config/nvim/rules/biome.json b/.config/nvim/rules/biome.json index e71a91d8..fe004c38 100644 --- a/.config/nvim/rules/biome.json +++ b/.config/nvim/rules/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", + "$schema": "https://biomejs.dev/schemas/1.5.1/schema.json", "organizeImports": { "enabled": true },