From 2d7b9bcb670154f4526c7aa643e012b33514c614 Mon Sep 17 00:00:00 2001 From: Joao Louceiro <89097431+joaoLouceiro@users.noreply.github.com> Date: Wed, 10 Dec 2025 09:32:19 +0000 Subject: [PATCH] Refactor JDTLS settings in README The default_config section in JDTLS settings makes it so nvim-java can't find the list of JDKs. --- README.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3110ad2..5137180 100644 --- a/README.md +++ b/README.md @@ -284,16 +284,14 @@ Use `vim.lsp.config()` to override the default JDTLS settings: ```lua vim.lsp.config('jdtls', { - default_config = { - settings = { - java = { - configuration = { - runtimes = { - { - name = "JavaSE-21", - path = "/opt/jdk-21", - default = true, - } + settings = { + java = { + configuration = { + runtimes = { + { + name = "JavaSE-21", + path = "/opt/jdk-21", + default = true, } } }