1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-25 10:19:48 +01:00

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
This commit is contained in:
AmanSe 2024-01-31 20:01:45 +05:30
parent 6fb2d67a05
commit 0e94edd88f
No known key found for this signature in database

View file

@ -4,7 +4,7 @@
lib, lib,
... ...
}: let }: 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; cfg = config.vim.languages.java;
in { in {
@ -38,7 +38,7 @@ in {
cmd = ${ cmd = ${
if isList cfg.lsp.package if isList cfg.lsp.package
then nvim.lua.expToLua 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"}''
}, },
} }
''; '';