b388cdb

Branches > main > b388cdb > files

Add Java 25 to my LSP

Grahp, 2026-10-25

Commit: b388cdb27d19f0b24c6c78c8a3b3d111e45f57be
Parent: 0685822

1 changed file:

nvim/lua/lsp.lua modified (view file)

@@ -32,8 +32,13 @@         settings = {Lua = {diagnostics = {globals = {"vim"}}}},         root_markers = {".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml", ".git"}}) +local java_home = vim.fn.fnamemodify(vim.fn.resolve(vim.fn.exepath("java")), ":h:h")+ config({name = "jdtls",         filetypes = {"java"},+        settings = {java = {configuration = {runtimes = {{name = "JavaSE-25",+                                                          path = java_home,+                                                          default = true}}}}},         root_markers = {"mvnw",                         "gradlew",                         "settings.gradle",