Skip to content

Commit

Permalink
fix(scala): schedule initlialize_or_attach
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed May 7, 2024
1 parent a751246 commit a9f2588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/scala/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit a9f2588

Please sign in to comment.