From a9f25886a05f6cd707744da76e69429d56a18d80 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 7 May 2024 09:07:58 -0400 Subject: [PATCH] fix(scala): schedule `initlialize_or_attach` --- lua/astrocommunity/pack/scala/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/scala/init.lua b/lua/astrocommunity/pack/scala/init.lua index 9d68e7baa..3170e5e90 100644 --- a/lua/astrocommunity/pack/scala/init.lua +++ b/lua/astrocommunity/pack/scala/init.lua @@ -38,7 +38,7 @@ return { pattern = self.ft, group = vim.api.nvim_create_augroup("nvim-metals", { clear = true }), desc = "Initialize and attach nvim-metals", - callback = function() require("metals").initialize_or_attach(opts) end, + callback = vim.schedule_wrap(function() require("metals").initialize_or_attach(opts) end), }) end, },