docs(conform): conform condition example

This commit is contained in:
Folke Lemaitre 2023-10-06 23:25:24 +02:00
parent 8bcc241b72
commit fb110e76d8
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -36,7 +36,7 @@ return {
injected = { options = { ignore_errors = true } },
-- -- Example of using dprint only when a dprint.json file is present
-- dprint = {
-- condition = function(self, ctx)
-- condition = function(ctx)
-- return vim.fs.find({ "dprint.json" }, { path = ctx.filename, upward = true })[1]
-- end,
-- },