feat(conform): ignore formatting errors for injected languages and fix condition example

This commit is contained in:
Folke Lemaitre
2023-10-06 09:26:14 +02:00
parent 8a1de2b90a
commit a1c5886947

View File

@ -33,9 +33,10 @@ return {
-- You can also define any custom formatters here.
---@type table<string,table>
formatters = {
injected = { options = { ignore_errors = true } },
-- -- Example of using dprint only when a dprint.json file is present
-- dprint = {
-- condition = function(ctx)
-- condition = function(self, ctx)
-- return vim.fs.find({ "dprint.json" }, { path = ctx.filename, upward = true })[1]
-- end,
-- },