From 3d4417081ca94d1c54fab51049827817abf26076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 9 Oct 2023 16:30:46 +0300 Subject: [PATCH] vimrc: add javaHome --- shared/home/default.nix | 1 + shared/home/init.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/shared/home/default.nix b/shared/home/default.nix index ed9fe68..1b913a4 100644 --- a/shared/home/default.nix +++ b/shared/home/default.nix @@ -56,6 +56,7 @@ (pkgs.substituteAll { src = ./init.lua; inherit (pkgs) metals; + javaHome = pkgs.jdk.home; }) .outPath; }; diff --git a/shared/home/init.lua b/shared/home/init.lua index 491cf95..2340aeb 100644 --- a/shared/home/init.lua +++ b/shared/home/init.lua @@ -177,6 +177,7 @@ metals_config.settings = { showImplicitArguments = true, excludedPackages = { "akka.actor.typed.javadsl", "com.github.swagger.akka.javadsl" }, metalsBinaryPath = "@metals@/bin/metals", + javaHome = "@javaHome@", } -- *READ THIS*