docs(conform): conform condition example
This commit is contained in:
1 file changed
+1
-1
@@ -36,7 +36,7 @@ return {
|
|||||||
injected = { options = { ignore_errors = true } },
|
injected = { options = { ignore_errors = true } },
|
||||||
-- -- Example of using dprint only when a dprint.json file is present
|
-- -- Example of using dprint only when a dprint.json file is present
|
||||||
-- dprint = {
|
-- dprint = {
|
||||||
-- condition = function(self, ctx)
|
-- condition = function(ctx)
|
||||||
-- return vim.fs.find({ "dprint.json" }, { path = ctx.filename, upward = true })[1]
|
-- return vim.fs.find({ "dprint.json" }, { path = ctx.filename, upward = true })[1]
|
||||||
-- end,
|
-- end,
|
||||||
-- },
|
-- },
|
||||||
|
|||||||
Reference in new issue
Block a user