mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 18:59:00 +02:00
feat(conform): ignore formatting errors for injected languages and fix condition example
This commit is contained in:
parent
8a1de2b90a
commit
a1c5886947
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
-- },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue