From fd8e9779df91e980d09d1d616d89e77bc4d5c58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 13 Apr 2024 17:46:48 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20condition=20for?= =?UTF-8?q?=20loading=20prettierd=20if=20there=20isnt=20any=20biome=20conf?= =?UTF-8?q?ig=20file=20in=20the=20root=20dir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/linting/biome.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/linting/biome.lua b/.config/nvim/lua/plugins/extras/linting/biome.lua index 25e56fce..030e27ec 100644 --- a/.config/nvim/lua/plugins/extras/linting/biome.lua +++ b/.config/nvim/lua/plugins/extras/linting/biome.lua @@ -50,6 +50,11 @@ return { return not vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1] end, }, + prettierd = { + condition = function(self, ctx) + return not vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1] + end, + }, } return opts