I'm not gonna bother
This commit is contained in:
@ -12,8 +12,8 @@ local java_dap_install = core.mason.get_pkg_path("java-debug-adapter")
|
||||
-- make sure to check if things with 💀 need updating
|
||||
local config = {
|
||||
cmd = {
|
||||
"/usr/lib/jvm/openjdk21/bin/java", -- 💀
|
||||
"-jar", -- 💀
|
||||
"java", -- 💀
|
||||
"-jar",
|
||||
vim.fn.glob(vim.fs.joinpath(jdtls_install, "plugins/org.eclipse.equinox.launcher_*.jar")),
|
||||
"-configuration", jdtls_install.."config_linux",
|
||||
"-data", vim.fn.stdpath("cache").."/nvim-jdtls",
|
||||
@ -71,12 +71,6 @@ local config = {
|
||||
dap.adapters.java = nil -- remove any old java adapters
|
||||
jdtls.setup_dap({ hotcodereplace = "auto" })
|
||||
end,
|
||||
|
||||
-- don't print out status messages
|
||||
handlers = {
|
||||
["language/status"] = function() end
|
||||
},
|
||||
|
||||
init_options = {
|
||||
bundles = {
|
||||
vim.fs.joinpath(java_dap_install,
|
||||
@ -84,6 +78,10 @@ local config = {
|
||||
true)
|
||||
)
|
||||
}
|
||||
},
|
||||
-- don't print out status messages
|
||||
handlers = {
|
||||
["language/status"] = function() end
|
||||
}
|
||||
}
|
||||
|
||||
@ -157,7 +155,6 @@ local function version_check()
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
-- start the jdtls with dap!
|
||||
if not version_check() then
|
||||
return
|
||||
|
Reference in New Issue
Block a user