From 6f300ef1f097745eed18203c4ea60718466b82dd Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 15 Sep 2024 07:29:14 +0100 Subject: [PATCH] Load phoenix_live_view in formatter config Fixes this error thrown by ElixirLS when trying to format code: ** (Mix.Error) Formatter plugin Phoenix.LiveView.HTMLFormatter cannot be found --- .formatter.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.formatter.exs b/.formatter.exs index ef8840ce..d52cd8a3 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,5 +1,5 @@ [ - import_deps: [:ecto, :ecto_sql, :phoenix], + import_deps: [:ecto, :ecto_sql, :phoenix, :phoenix_live_view], subdirectories: ["priv/*/migrations"], plugins: [Phoenix.LiveView.HTMLFormatter], inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"]