feat(nvim): add condition for loading prettierd if there isnt any biome config file in the root dir

This commit is contained in:
Sergio Laín 2024-04-13 17:46:48 +02:00
parent 90234069a2
commit fd8e9779df
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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