## 事象 [[conform.nvim]]でフォーマットすると以下の警告が出る。 ```warning deprecated[conform]: The nested {} syntax to run the first formatter has been replaced by the stop_after_first option (see :help conform.format). Support for the old syntax will be dropped on 2025-01-01. ``` ## 原因 ある`formatters_by_ft`でそのような設定をしているから。 ```lua formatters_by_ft = { typescript = { { "biome", "prettierd" } }, }, ``` ネストした`{}`は、もともと指定した複数[[フォーマッター]]の内、最初に存在するもののみを利用するという仕様だった。しかし、より推奨される仕様に変わったため将来的に削除されることとなった。 ## 解決方法 新しい仕様で記載する。 ```lua formatters_by_ft = { typescript = { "biome", "prettierd", stop_after_first = true }, }, ```