From 0e94edd88f7181ddd391d0b077657f44b1bc3368 Mon Sep 17 00:00:00 2001 From: AmanSe Date: Wed, 31 Jan 2024 20:01:45 +0530 Subject: [PATCH] Fix java lsp not launching java lsp pacakge in nixpkgs changed the execution binary name, just using getExe for probably a permanent fix to this situation --- modules/languages/java.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/languages/java.nix b/modules/languages/java.nix index d09458f..fc138cc 100644 --- a/modules/languages/java.nix +++ b/modules/languages/java.nix @@ -4,7 +4,7 @@ lib, ... }: let - inherit (lib) isList nvim mkEnableOption mkOption types mkIf mkMerge; + inherit (lib) isList nvim mkEnableOption mkOption types mkIf mkMerge getExe; cfg = config.vim.languages.java; in { @@ -38,7 +38,7 @@ in { cmd = ${ if isList cfg.lsp.package then nvim.lua.expToLua cfg.lsp.package - else ''{"${cfg.lsp.package}/bin/jdt-language-server", "-data", vim.fn.stdpath("cache").."/jdtls/workspace"}'' + else ''{"${getExe cfg.lsp.package}", "-data", vim.fn.stdpath("cache").."/jdtls/workspace"}'' }, } '';