Skip to content

Commit

Permalink
feat(conform): ignore formatting errors for injected languages and fi…
Browse files Browse the repository at this point in the history
…x condition example
  • Loading branch information
folke committed Oct 6, 2023
1 parent 8a1de2b commit a1c5886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazyvim/plugins/extras/formatting/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
-- },
Expand Down

0 comments on commit a1c5886

Please sign in to comment.