From 375dc25df1ba9345a48ce679ab11a356c501c835 Mon Sep 17 00:00:00 2001 From: Watson Dinh Date: Sat, 25 Oct 2025 13:00:03 -0500 Subject: [PATCH] update nvim-metals's dependencies - plenary.nvim is removed due to this: https://github.com/scalameta/nvim-metals/pull/753 - telescope is optional --- lua/lazyvim/plugins/extras/lang/scala.lua | 32 +++++++++++++---------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/scala.lua b/lua/lazyvim/plugins/extras/lang/scala.lua index 3aed9b79..92a8ad15 100644 --- a/lua/lazyvim/plugins/extras/lang/scala.lua +++ b/lua/lazyvim/plugins/extras/lang/scala.lua @@ -11,26 +11,16 @@ return { }, { "scalameta/nvim-metals", - dependencies = { - "nvim-lua/plenary.nvim", - }, keys = { { - "me", - function() - require("telescope").extensions.metals.commands() - end, - desc = "Metals commands", - }, - { - "mc", + "c", function() require("metals").compile_cascade() end, desc = "Metals compile cascade", }, { - "mh", + "h", function() require("metals").hover_worksheet() end, @@ -45,8 +35,8 @@ return { metals_config.settings = { verboseCompilation = true, - showImplicitArguments = true, - showImplicitConversionsAndClasses = true, + showImplicitArguments = false, + showImplicitConversionsAndClasses = false, showInferredType = true, superMethodLensesEnabled = true, excludedPackages = { @@ -102,4 +92,18 @@ return { } end, }, + { + "nvim-telescope/telescope.nvim", + optional = true, + keys = { + { + "e", + function() + require("telescope").extensions.metals.commands() + end, + ft = { "scala", "sbt", "java" }, + desc = "Metals commands", + }, + }, + }, }