✨ feat(nvim): add condition for loading prettierd if there isnt any biome config file in the root dir
This commit is contained in:
parent
90234069a2
commit
fd8e9779df
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ return {
|
||||||
return not vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1]
|
return not vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1]
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
prettierd = {
|
||||||
|
condition = function(self, ctx)
|
||||||
|
return not vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1]
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
|
|
Loading…
Add table
Reference in a new issue