diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index 44487d1..cf939f5 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -19,7 +19,7 @@ return { formatters_by_ft = { lua = { "stylua" }, python = { "isort", "black" }, - javascript = { { "prettierd", "prettier" } }, + javascript = { "prettierd", "prettier", stop_after_first = true }, }, -- Set up format-on-save format_on_save = { timeout_ms = 500, lsp_fallback = true }, diff --git a/lua/plugins/metals.lua b/lua/plugins/metals.lua index 5edb2c6..cab27e8 100644 --- a/lua/plugins/metals.lua +++ b/lua/plugins/metals.lua @@ -29,6 +29,14 @@ return { --args = { "firstArg", "secondArg", "thirdArg" }, -- here just as an example }, }, + { + type = "scala", + request = "attach", + buildTarget = "main", + name = "attach to service", + hostName = "localhost", + port = 9999, + }, { type = "scala", request = "launch",