nixos: gen 48 @ lilac — 2026-09-18 10:18 26.05.20260814.02e0898 (Yarara) -----
This commit is contained in:
@@ -137,6 +137,15 @@ in
|
||||
end
|
||||
|
||||
local java_home = os.getenv("JAVA_HOME")
|
||||
if not java_home then
|
||||
local javac = vim.fn.exepath("javac")
|
||||
if javac ~= "" then
|
||||
java_home = vim.fn.fnamemodify(vim.fn.resolve(javac), ":h:h")
|
||||
end
|
||||
end
|
||||
if not java_home then
|
||||
vim.notify("No JAVA_HOME and no javac on PATH - jdtls will guess a runtime", vim.log.levels.WARN)
|
||||
end
|
||||
if not java_home then
|
||||
vim.notify("JAVA_HOME unset - jdtls will guess a runtime", vim.log.levels.WARN)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user