Fix conform error
> Error detected while processing BufWritePre Autocommands for "*": > The nested {} syntax to run the first formatter has been replaced by the stop_after_first option (see :help conform.format).
This commit is contained in:
parent
4461ad3ca4
commit
90118dde48
1 changed files with 3 additions and 3 deletions
|
@ -4,11 +4,11 @@ conform.setup {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
bash = { "shellcheck" },
|
bash = { "shellcheck" },
|
||||||
go = { "gofmt" },
|
go = { "gofmt" },
|
||||||
javascript = { { "prettierd", "prettier" } },
|
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
just = { "just" },
|
just = { "just" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
nix = { { "nixfmt" } },
|
nix = { "nixfmt" },
|
||||||
php = { { "php_cs_fixer", "phpcbf" } },
|
php = { "php_cs_fixer", "phpcbf", stop_after_first = true },
|
||||||
terraform = { "terraform_fmt" },
|
terraform = { "terraform_fmt" },
|
||||||
yaml = { "yamlfmt" },
|
yaml = { "yamlfmt" },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue