From 78b4eafa40c39b7778395a69b926cfbebe6f1a6f Mon Sep 17 00:00:00 2001 From: Gabriel Volpe Date: Sun, 23 Jun 2024 16:40:37 +0200 Subject: [PATCH] nvim-metals: update to latest and tweak a few settings --- flake.lock | 6 +++--- lib/metalsOverlay.nix | 4 ++-- modules/lsp/lsp.nix | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index df4b7e0..8445ac4 100644 --- a/flake.lock +++ b/flake.lock @@ -861,11 +861,11 @@ "nvim-metals": { "flake": false, "locked": { - "lastModified": 1714638819, - "narHash": "sha256-r5s0eNMSxBnmu1LYs/+RrhNk356ikfCPA1FfiJcX+K8=", + "lastModified": 1716636339, + "narHash": "sha256-VQOolBCVYZ1T71REjgD7X/+txd1awmdGgW154hc30Y8=", "owner": "scalameta", "repo": "nvim-metals", - "rev": "c6268555d0b471262af78818f11a086ddf30688b", + "rev": "1b87e6bfa4174b5fbaee9ca7ec79d8eae8df7f18", "type": "github" }, "original": { diff --git a/lib/metalsOverlay.nix b/lib/metalsOverlay.nix index 23c4e81..b3b554f 100644 --- a/lib/metalsOverlay.nix +++ b/lib/metalsOverlay.nix @@ -7,7 +7,7 @@ let in { metals = builder { - version = "1.3.0"; - outputHash = "sha256-otN4sqV2a0itLOoJ7x+VSMe0tl3y4WVovbA1HOpZVDw="; + version = "1.3.2"; + outputHash = "sha256-hRESY7TFxUjEkNf0vhCG30mIHZHXoAyZl3nTQ3OvQ0E="; }; } diff --git a/modules/lsp/lsp.nix b/modules/lsp/lsp.nix index 75c0985..d91e9d6 100644 --- a/modules/lsp/lsp.nix +++ b/modules/lsp/lsp.nix @@ -413,9 +413,12 @@ in metals_config.settings = { metalsBinaryPath = "${cfg.scala.metals}/bin/metals", + autoImportBuild = "off", + defaultBspToBuildTool = true, showImplicitArguments = true, showImplicitConversionsAndClasses = true, showInferredType = true, + superMethodLensesEnabled = true, excludedPackages = { "akka.actor.typed.javadsl", "com.github.swagger.akka.javadsl"