aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/jdtls/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/jdtls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/jdtls/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/servers/jdtls/init.lua b/lua/nvim-lsp-installer/servers/jdtls/init.lua
index a7dba6c6..806babd8 100644
--- a/lua/nvim-lsp-installer/servers/jdtls/init.lua
+++ b/lua/nvim-lsp-installer/servers/jdtls/init.lua
@@ -8,6 +8,7 @@ local Data = require "nvim-lsp-installer.data"
return function(name, root_dir)
local function get_cmd(workspace_name)
local executable = vim.env.JAVA_HOME and path.concat { vim.env.JAVA_HOME, "bin", "java" } or "java"
+ local jar = vim.fn.expand(path.concat { root_dir, "plugins", "org.eclipse.equinox.launcher_*.jar" })
return {
platform.is_win and ("%s.exe"):format(executable) or executable,
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
@@ -18,7 +19,7 @@ return function(name, root_dir)
"-Xms1g",
"-Xmx2G",
"-jar",
- vim.fn.expand(path.concat { root_dir, "plugins", "org.eclipse.equinox.launcher_*.jar" }),
+ jar,
"-configuration",
path.concat {
root_dir,