From 90118dde485dd3b619a6d3168d58f6d10b777f16 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Thu, 30 Jan 2025 17:46:11 +0000
Subject: [PATCH] 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).
---
 nvim/plugin/conform.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nvim/plugin/conform.lua b/nvim/plugin/conform.lua
index 462abe4f..c2643665 100644
--- a/nvim/plugin/conform.lua
+++ b/nvim/plugin/conform.lua
@@ -4,11 +4,11 @@ conform.setup {
   formatters_by_ft = {
     bash = { "shellcheck" },
     go = { "gofmt" },
-    javascript = { { "prettierd", "prettier" } },
+    javascript = { "prettierd", "prettier", stop_after_first = true },
     just = { "just" },
     lua = { "stylua" },
-    nix = { { "nixfmt" } },
-    php = { { "php_cs_fixer", "phpcbf" } },
+    nix = { "nixfmt" },
+    php = { "php_cs_fixer", "phpcbf", stop_after_first = true },
     terraform = { "terraform_fmt" },
     yaml = { "yamlfmt" },
   },