Skip to content

Commit

Permalink
Merge pull request #202 from Amanse/main
Browse files Browse the repository at this point in the history
Fix java lsp not launching
  • Loading branch information
NotAShelf authored Jan 31, 2024
2 parents 6fb2d67 + 0e94edd commit 232c812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/languages/java.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"}''
},
}
'';
Expand Down

0 comments on commit 232c812

Please sign in to comment.