I'm not gonna bother

This commit is contained in:
2025-08-10 13:10:05 -04:00
parent 7c96b43098
commit d320577772
18 changed files with 182 additions and 192 deletions

View File

@ -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

View File

@ -0,0 +1,3 @@
" will remove when my pr gets into neovim
" https://github.com/vim/vim/pull/17902
setl commentstring=//\ %s