Update lua/lazyvim/plugins/extras/lang/java.lua

Co-authored-by: William Boman <william@redwill.se>
This commit is contained in:
Iordanis Petkakis 2025-05-14 11:22:57 +03:00 committed by GitHub
parent 6efced7b9f
commit 0585eeac05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ return {
opts = function() opts = function()
local cmd = { vim.fn.exepath("jdtls") } local cmd = { vim.fn.exepath("jdtls") }
if LazyVim.has("mason.nvim") then if LazyVim.has("mason.nvim") then
local lombok_jar = LazyVim.get_pkg_path("jdtls", "/lombok.jar") local lombok_jar = vim.fn.expand "$MASON/share/jdtls/lombok.jar"
table.insert(cmd, string.format("--jvm-arg=-javaagent:%s", lombok_jar)) table.insert(cmd, string.format("--jvm-arg=-javaagent:%s", lombok_jar))
end end
return { return {