From ed23eae439b9ceff66952e3049436dae9d134481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 12 Jan 2024 14:03:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(nvim):=20correctly=20use=20b?= =?UTF-8?q?iome=20json=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/linting/biome.lua | 3 +-- .config/nvim/rules/biome.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 },