nixos: gen 48 @ lilac — 2026-09-18 10:18 26.05.20260814.02e0898 (Yarara) -----

This commit is contained in:
2026-09-18 10:18:52 -06:00
parent 46362c1949
commit f524723d98
+9
View File
@@ -137,6 +137,15 @@ in
end end
local java_home = os.getenv("JAVA_HOME") 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 if not java_home then
vim.notify("JAVA_HOME unset - jdtls will guess a runtime", vim.log.levels.WARN) vim.notify("JAVA_HOME unset - jdtls will guess a runtime", vim.log.levels.WARN)
end end