From 40751969d9816090808947766a451cb90399e6eb Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Thu, 15 Feb 2024 10:03:04 +0100 Subject: [PATCH] Add lombok support. --- lua/plugins/lombok.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lua/plugins/lombok.lua diff --git a/lua/plugins/lombok.lua b/lua/plugins/lombok.lua new file mode 100644 index 0000000..5c28147 --- /dev/null +++ b/lua/plugins/lombok.lua @@ -0,0 +1,15 @@ +return { + { + "mfussenegger/nvim-jdtls", + ---@type lspconfig.options.jdtls + ---@diagnostic disable-next-line: missing-fields + opts = { + jdtls = function(opts) + local install_path = require("mason-registry").get_package("jdtls"):get_install_path() + local jvmArg = "-javaagent:" .. install_path .. "/lombok.jar" + table.insert(opts.cmd, "--jvm-arg=" .. jvmArg) + return opts + end, + }, + }, +}